Android Tutorials - Herong's Tutorial Examples - v3.05, by Herong Yang
Debugging Connection to Android Device Emulators
This section provides a tutorial example on how to create a wireless debugging connection to run debugging commands using the 'adb' tool.
If you run debugging commands on Android device emulators, you can follow this tutorial to create debugging connections to emulators.
1. Launch the Android emulator through the AVD Manager and wait for the emulator to be fully booted.
2. Go to a Windows command window and run the following "adb" command.
> \local\android-sdk-windows\platform-tools\adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached emulator-5554 offline
3. Test the debugging connection with the following "adb" command.
> \local\android-sdk-windows\platform-tools\adb shell df Filesystem Size Used Free Blksize /dev 242.9M 24.0K 242.8M 4096 /sys/fs/cgroup 242.9M 12.0K 242.9M 4096 /mnt/asec 242.9M 0.0K 242.9M 4096 /mnt/obb 242.9M 0.0K 242.9M 4096
Cool, I have successfully created a debugging connection to my Android device emulator controlled by the AVD Manager.
Table of Contents
Installing JDK 1.8 on Windows System
Installation of Android SDK R24 and Emulator
Installing Apache Ant 1.9 on Windows System
Developing First Android Application - HelloAndroid
Android Application Package (APK) Files
►Android Debug Bridge (adb) Tool
What Is Android Debug Bridge (adb)
Install "adb" as Part of SDK Platform Tools
USB Debugging Connection to Use "adb" Tool
Wireless Debugging Connection to Use "adb" Tool
►Debugging Connection to Android Device Emulators
Commands and Options Supported by "adb"
"adb install" and "adb uninstall" Commands
"adb push" and "adb pull" Commands
"adb shell" - Remote Shell Interface
AboutAndroid - Application to Retrieve System Information
android.app.Activity Class and Activity Lifecycle
View Objects and Layout Resource Files
Using "adb logcat" Command for Debugging
Build Process and Package File Content
Samsung Galaxy Tab 3 Mini Tablet
USB Debugging Applications on Samsung Tablet
USB Debugging Applications on LG-V905R Tablet