void0
void0

Reputation: 89

Eclipse: does not launch the app after installing .apk (android)

Recently after having updated lots of stuff on android SDK something happened to Eclipse.

I'm running the apps on an actual device instead of an emulator. Before the updates, after I used to click 'Run' and select my device, it would upload the .apk to the phone and immediately launch the app. For some reason, it doesn't do that anymore and simply stops after installing:

[2011-11-09 18:17:18 - helloworld] Android Launch!
[2011-11-09 18:17:18 - helloworld] adb is running normally.
[2011-11-09 18:17:18 - helloworld] Performing com.example.helloandroid.HelloAndroid     activity launch
[2011-11-09 18:17:26 - helloworld] Device API version is 10 (Android 2.3.6)
[2011-11-09 18:17:26 - helloworld] Uploading helloworld.apk onto device '363294A87A1000EC'
[2011-11-09 18:17:26 - helloworld] Installing helloworld.apk...

The phone is on debugging mode and I generally haven't changed anything on Eclipse's settings - it literally stopped working after the SDK updates. Any idea how to make it automatically run the apps again?

Thanks

Upvotes: 3

Views: 7551

Answers (4)

Tim Long
Tim Long

Reputation: 2149

In Eclipse, Right click on Project > Runs As > Run Configurations > select Launch Default Activity under Android Tab.

Upvotes: 1

Dlong
Dlong

Reputation: 79

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

Make sure these are in your manifest in the intent filter for your activity.

Upvotes: 4

Matteo
Matteo

Reputation: 76

sorry for my bad english. I had the same problem after sdk updates. To solve this problem you have to update also "Android DDMS", "ADT" and all other components on eclipse. To do this open eclipse and click on "Help -> Check for updates". All android parts in eclipse will update automatically to the latest version (the version of SDK). I hope that this will work also for you. Bye.

Matteo

Upvotes: 6

apesa
apesa

Reputation: 12443

Look in your "Run Configurations under the project context menu. Right click on your project and choose "Run As -> Run Configurations". Choose target tab and choose "Manual" for deployment Target Selection Mode. This will allow you to see what Eclipse should see when it is looking for a target. If your phone doesn't show, then you may have to configure something else.

You did not mention phone type.

Also verify your original Virtual Devices are still in AVD.

Upvotes: 0

Related Questions