Android Tutorials - Herong's Tutorial Examples - v3.05, by Herong Yang
Running "adb" on LG-V905R USB Debugging Interface
This section provides a tutorial example on how to run 'adb' commands on LG-V905R Android tablet through the USB debugging interface. 'adb -d' is to run commands on the USB connected Android device. But if there is only 1 device, '-d' option is not needed.
With my LG-V905R Android tablet connected in USB debugging mode, I can try some Android SDK debugging tools on my Windows computer now.
The first I want to try is the ADB (Android Debugging Bridge) tool:
C:\herong>\local\android-sdk-windows\platform-tools\adb devices List of devices attached 028841C6433F5617 device C:\herong>\local\android-sdk-windows\platform-tools\adb -d shell \ uptime up time: 03:53:55, idle time: 06:46:15, sleep time: 00:29:12 C:\herong>\local\android-sdk-windows\platform-tools\adb shell \ ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.291 ms 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.173 ms 64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.166 ms C:\herong>\local\android-sdk-windows\platform-tools\adb -d shell shell@android:/ $ df df Filesystem Size Used Free Blksize /dev 331M 36K 331M 4096 /mnt/asec 331M 0K 331M 4096 /mnt/obb 331M 0K 331M 4096 /system 393M 202M 191M 4096 /data 28G 1G 27G 4096 /cache 393M 6M 387M 4096 /mnt/sdcard 28G 1G 27G 4096 shell@android:/ $ exit exit C:\herong>\local\android-sdk-windows\platform-tools\adb -d logcat ... ommand(): intent = Intent { act=tango.service.KEEP_ALIVE flg=0x4 cm... V/Tango.Utils( 455): 2012 06 29 14:16:55.579 [455.455] Read Tango.... D/Tango.MessageService( 455): 2012 06 29 14:16:55.584 [455.455] ... D/BatteryService( 123): level:99 scale:100 status:4 health:2 prese... D/Tango.MessageService( 455): 2012 06 29 14:19:55.583 [455.455] ... V/Tango.Utils( 455): 2012 06 29 14:19:55.585 [455.455] Read Tango.... D/Tango.MessageService( 455): 2012 06 29 14:19:55.588 [455.455] ... D/BatteryService( 123): level:99 scale:100 status:4 health:2 prese... D/SntpClient( 123): request time failed: java.net.UnknownHostExcep... D/SntpClient( 123): request time failed: java.net.UnknownHostExcep... D/SntpClient( 123): request time failed: java.net.UnknownHostExcep... ... ^C
What I learned here are:
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
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
Turning on USB Debugging on LG-V905R
Viewing LG-V905R Android USB Device in Control Panel
►Running "adb" on LG-V905R USB Debugging Interface
Installing Application to Tablet using "ant installd" Command
Installing Application to Tablet using "adb -d install" Command
Installing "AboutAndroid" to LG-V905R Tablet