Android Add Views or View Groups Below a ListView or GridView

You might be thinking showing up a View like TextView, ImageView, EditText, Button, etc. or a ViewGroup (wrapping other Views) like RelativeLayout or LinearLayout below a ListView/GridView must be easy. It’s not. Not in Android atleast.

Continue reading “Android Add Views or View Groups Below a ListView or GridView”

Get Application APK File from Android Device To Your Computer

In this quick tip, we’ll see how to use the excellent Android Debug Bridge (adb) tool on the command line to list all the installed packages on our android device (non-rooted in my case) and then extract one of their APK files to our computer.

Continue reading “Get Application APK File from Android Device To Your Computer”

Execute ADB Commands To Query a Particular Android Device/Emulator

When using the versatile Android Debug Bridge (adb) tool to issue commands, if there’s only one device or emulator attached then that’s fine as the commands will be executed on exactly that. But if there’s more than one instance then we’ll get an error on the terminal saying error: more than one device and emulator.

Continue reading “Execute ADB Commands To Query a Particular Android Device/Emulator”

ADB Genymotion Upgrade Issue: Devices Not Showing Up (“adb server is out of date. killing…”)

I upgraded a lot of things on my system. From Mavericks to Yosemite (upgrading the entire Mac operating system itself) to upgrading the Android SDK with Eclipse as well as Android Studio from 0.6.1 to 0.8.6.

Continue reading “ADB Genymotion Upgrade Issue: Devices Not Showing Up (“adb server is out of date. killing…”)”

Quick Tip: Android ViewFlipper Jump/Move/Switch To a Certain Child View

At times you might want to jump the user to a specific View inside a ViewFlipper on the click of some other View or some such scenario. So let’s say we have a ViewFlipper in our layout resource like this:

Continue reading “Quick Tip: Android ViewFlipper Jump/Move/Switch To a Certain Child View”