app will not launch on device

Scott picture Scott · Jul 10, 2012 · Viewed 13.2k times · Source

I'm a noob to Java, Eclipse and Android application development. I'm going through the Android app tutorial but can't seem to get the first lesson to launch on my device. After fixing a handful of issue preventing the project from compiling I was able to get it to run on an AVD. But have had no luck on a physical device. The following are the details of my environment and what the console shows me.

On the phone I tried looking for the install under apps, downloads and the desktop but don't see it.

Computer: Windows XP

Device: Samsung Galaxy Nexus running 4.1, kernel 3.036-04142-gfa7dc12-dirty

Dev Env: Eclipse Juno

Console:

[2012-07-10 13:35:11 - MyFirstProject] ------------------------------
[2012-07-10 13:35:11 - MyFirstProject] Android Launch!
[2012-07-10 13:35:11 - MyFirstProject] adb is running normally.
[2012-07-10 13:35:11 - MyFirstProject] Performing com.example.myfirstapp.MainActivity activity launch
[2012-07-10 13:35:14 - MyFirstProject] Uploading MyFirstProject.apk onto device '014994321500300C'
[2012-07-10 13:35:14 - MyFirstProject] Installing MyFirstProject.apk...
[2012-07-10 13:35:14 - MyFirstProject] Success!
[2012-07-10 13:35:14 - MyFirstProject] Starting activity com.example.myfirstapp.MainActivity on device 014994321500300C

Thanks for the quick responses.

My phone is visible from Eclipse when debugging. I hadn't specifically installed the Samsung driver on the machine I'm doing this on. Checking Device Manager I saw the phone was not recognized properly by Windows. I have since installed the driver and can now perform actions on the phone through the command prompt (e.g. adb reboot).

After installing the driver I rebooted my pc and phone. Unfortunately the default intent still does not load on the phone as it does when using an AVD. I'd be happy using the AVD but it is pretty slow on my pc plus it's just cooler to hold it in your hands (it's more real). :)

Answer

simas picture simas · May 26, 2014

For google Nexus devices you should download Google USB Driver from here: http://developer.android.com/sdk/win-usb.html After installing this(from android sdk manager) just restart eclipse and it should recognize and install the apk on your physical device