Eclipse goes in cycles in "starting activity" when sending applications to the device. How to solve this?

Sometimes, when I try to "Run" my application in my Droid Charge (Gingerbread is running), Eclipse displays the following on 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 on the phone. I cannot see that .apk has ever been installed in the application list.

What can I do to run? It works great with AVD running through the emulator.

Thanks!

+6
source share
2 answers

I see three possible ways to answer your problem:

1. Have you checked the manifest.xml file? Field <i>

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

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

2. Your AVD machine is slightly damaged or the ADB is unstable: Check this problem.

3. Your project may be incorrect: Try to clear (project-> clear) your project, as well as rebuild it and restart AVD.

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

+6
source

I ran into this problem and solved it easily.

Solution: Just make sure you select the root folder of the Android project in the package explorer.

What is it.

0
source

Source: https://habr.com/ru/post/917151/


All Articles