How to run Android applications on the device from Eclipse ADB
satya - Thursday, October 07, 2010 1:02:10 PM
Read this note on Developing on the device from the SDK
satya - Thursday, October 07, 2010 1:03:43 PM
Key points
Install the device driver
Enable on the device usb debugging
(Go through settings)
Set the application as debuggable
satya - Thursday, October 07, 2010 1:04:32 PM
Here is how you can download Motorola Droid drivers
satya - Thursday, October 07, 2010 1:05:01 PM
Specifying debug...
<application android:icon="@drawable/icon"
android:label="OpenGL Test Harness"
android:debuggable="true">
satya - Thursday, October 07, 2010 1:05:48 PM
Specifying a uses-feature if needed (unrelated to running on the device)
....
<uses-feature android:glEsVersion="0x00020000" />
</application>
satya - Thu Aug 02 2012 09:52:46 GMT-0400 (Eastern Daylight Time)
Life is never dull. I have problems on my LG revolution to do this
It worked fine a couple of years ago on Motorola Droid. I have installed the USB driver and set the necessary settings recommended on the google site and also repeated here on this page so far.
Well that didn't work for LG. You ask what model I have etc. Read on how to fix this.
satya - Thu Aug 02 2012 09:53:35 GMT-0400 (Eastern Daylight Time)
How to see what model you have on LG
settings
About Phone (towards the bottom)
satya - Thu Aug 02 2012 09:54:31 GMT-0400 (Eastern Daylight Time)
My phone details are: VS910 4G
Model: VS910 4G
Android: 2.3.6
satya - Thu Aug 02 2012 09:55:49 GMT-0400 (Eastern Daylight Time)
Based on this you can download a driver from the link provided on google site
Based on this you can download a driver from the link provided on google site
This is an LG specific link.
satya - Thu Aug 02 2012 09:56:23 GMT-0400 (Eastern Daylight Time)
Download and install the base USB driver
Once the USB driver is installed you may want to reboot your machine. Just to be safe!!!
satya - Thu Aug 02 2012 09:57:10 GMT-0400 (Eastern Daylight Time)
Hook up the phone through the USB cord
This card is the same as the one you would normally charge the phone with. This is a micro-usb card on one end and full usb on the other.
satya - Thu Aug 02 2012 09:58:50 GMT-0400 (Eastern Daylight Time)
Surprise, surprise
windows by default opens up an nice removable hard drive option to mount the device as a hard drive. In fact 2 hard drives. One for the sdcard and one for the native device. I should say storage instead of hard drive. You get it.
Now I run
adb devices
no luck my friend. it doesnt' show up.
satya - Thu Aug 02 2012 10:00:10 GMT-0400 (Eastern Daylight Time)
The following searches helped to resolve this
The following searches helped to resolve this
satya - Thu Aug 02 2012 10:01:03 GMT-0400 (Eastern Daylight Time)
How to debug an android app on LG device?
How to debug an android app on LG device?
Search for: How to debug an android app on LG device?
This search is partially successful. It sent me on quite a number of wild goose changes.
satya - Thu Aug 02 2012 10:02:31 GMT-0400 (Eastern Daylight Time)
How to set LG Revolution internet connection mode?
Here is a more fruitful search to resolve this.
How to set LG Revolution internet connection mode?
Search for: How to set LG Revolution internet connection mode?
Apparently you have to set on LG device this internet connection mode to on.
satya - Thu Aug 02 2012 10:03:53 GMT-0400 (Eastern Daylight Time)
How do I set this internet connection mode on LG to on?
settings
connectivty
default connection mode
charge only
mass storage
internet connection
Pick the default connection mode as internet connection
satya - Thu Aug 02 2012 10:04:11 GMT-0400 (Eastern Daylight Time)
Now you connect the device and wait for about 2 minutes
Now you connect the device and wait for about 2 minutes
satya - Thu Aug 02 2012 10:04:26 GMT-0400 (Eastern Daylight Time)
Then run
adb devices
satya - Thu Aug 02 2012 10:04:58 GMT-0400 (Eastern Daylight Time)
You will see (hopefully!!) the device listed as one of the attached devices.
You will see (hopefully!!) the device listed as one of the attached devices.
satya - Thu Aug 02 2012 11:22:02 GMT-0400 (Eastern Daylight Time)
Message from Dave
Ugh! But not surprising. So you know, the Eclipse plugin will automatically set debuggable when you run on a device using the Run menu option. Which is preferred so you don't accidentally leave it set when you build the production apk.
- dave
satya - Thu Aug 02 2012 14:01:03 GMT-0400 (Eastern Daylight Time)
Once in a while the device may go offline
I have seen happen after 10 or so test attempts. The phone is still on. But for some reason adb and eclipse both think that the device is off line. I have to disconnect from the device from the usb cable and reconnect again.
when you reconnect it may take a minute or two before the device show up in eclipse list of devices.