Even though practically everything is possible from the emulator, I wanted to check out the USB debugging functionality in my android phone.It was super simple to setup
- Enable the USB Debugging option under Applications->Development.
- Before plugging in your phone you need to install the USB adb drivers ( if your running on windows).These drivers are vendor specific so you can download the appropriate one from here. http://developer.android.com/sdk/oem-usb.html
- Plug in the phone and hit run->cmd-> adb "deviceid" connect and viola your in.....
Some points to note
- In order to debug the attribute android:debuggable="true" in the application tag of the AndroidManifest.xml is mandatory.
- Access to the SQLite database on your phone directly from adb (like the way it works when using the emulator) is not allowed .If you do try it you would be greeted with a Security error. One workaround to read the database, would be to transfer it to the memory card and then read it locally.
And yeah its as easy as that.So simple but yet so powerful !!
Till next time....