Useful ADB Commands

If you are developing Android apps, using the Android Debug Bridge tool (ADB) may sometimes be necessary, or could save you a lot of time. With ADB you can install/uninstall apps, forward ports, push/pull files to your device, remotely connect to SQLite databases on your device, record the device screen, and more. See the link at the bottom for a full reference. Setting up the ADB tool The ADB tool comes with the Android SDK, and you can

» Read more

Android Emulator: How to access the sqlite database of an app

This is an example of how to access the sqlite database of an Android app running on an emulator. Make sure you have the android adb tool on your PATH. Run this command in the terminal: adb version If you have adb on your path, it should show something similar to this: Android Debug Bridge version 1.0.31 If not, follow this guide: Adding the adb tool to the terminal for easy access. Accessing the SQLITE database Open a

» Read more

Adding the Android adb tool to the command line

If you need to use the adb tool that comes with the Android SDK, you can easily add it to the command line. This example is on OS X, but also works on different Linux distros such as Ubuntu. The adb executable is located in the /platform-tools folders, where is the path to here you installed (unzipped) the Android SDK. Open a terminal, and type echo $PATH. This is your systems PATH variable, containing a list of folders separated by

» Read more

What to do when Eclipse fails to detect your Android emulator

If Eclipse fails to recognize your running Android emulator (no visible emulator in the DDMS view for example), you might see an error message in the console window like this: [2012-12-19 07:53:37 – adb] ADB server didn’t ACK [2012-12-19 07:53:37 – adb] failed to start daemon And you get an Adb Error dialog, saying: Adb failed to restart! Make sure the plugin is properly configured Like pictured below: You can solve this problem with the following steps:

» Read more