Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse becomes stuck on "starting activity" when sending application to device. How to solve this?

Sometimes, when I attempt to "Run" my application on my Droid Charge (running Gingerbread), Eclipse displays the following in the console:

[2012-05-31 23:08:50 - SomeApp] Android Launch!
[2012-05-31 23:08:50 - SomeApp] adb is running normally.
[2012-05-31 23:08:50 - SomeApp] Performing com.test.SomeActivity activity launch
[2012-05-31 23:08:52 - SomeApp] Uploading SomeApp.apk onto device 'DEVICEIDHERE'
[2012-05-31 23:08:52 - SomeApp] Installing SomeApp.apk...
[2012-05-31 23:08:53 - SomeApp] Success!
[2012-05-31 23:08:53 - SomeApp] Starting activity com.test.SomeActivity on device DEVICEIDHERE

However, the application never starts up on the phone. I am not able to see the that the .apk ever installed in the application's list.

What can I do to make it launch? It works just fine with AVD's running via the emulator.

Thank you!

like image 979
BVB Avatar asked Jun 01 '12 06:06

BVB


1 Answers

I can see 3 possible ways to give a try in solving your issue:

1. Have you checked the manifest.xml file? The field

<category android:name="android.intent.category.LAUNCHER" />

must be present inside your "main" activity, otherwise it will not launch in emulation mode.

2. Your AVD machine is somewhat corrupted or the ADB is instable: Check this issue.

3. Your project can be out of synchronization in some way: Try to cleanup (project->clean) your project as well as to rebuild it and reloading your AVD.

Hope it helps you in some way... ;D

like image 180
Marcelo Avatar answered Nov 16 '22 21:11

Marcelo