How to run Android applications on the device from Eclipse ADB

http://developer.android.com/guide/developing/device.html


Install the device driver
Enable on the device usb debugging
(Go through settings)
Set the application as debuggable

Here is how you can download Motorola Droid drivers


<application android:icon="@drawable/icon" 
              android:label="OpenGL Test Harness"
              android:debuggable="true">

....
<uses-feature android:glEsVersion="0x00020000" />   
</application>

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.


settings
About Phone (towards the bottom)

Model: VS910 4G
Android: 2.3.6

Based on this you can download a driver from the link provided on google site

This is an LG specific link.

Once the USB driver is installed you may want to reboot your machine. Just to be safe!!!

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.

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.

The following searches helped to resolve this

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.

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.


settings
connectivty
default connection mode
   charge only
   mass storage
   internet connection

Pick the default connection mode as internet connection

Now you connect the device and wait for about 2 minutes


adb devices

You will see (hopefully!!) the device listed as one of the attached devices.

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

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.