activity will not launch on emulator

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

activity will not launch on emulator

Postby peltzel » Wed Jun 30, 2010 2:53 pm

My application was working, I force shutdown my computer, and now I am getting the console output:


[2010-06-30 09:46:11 - MyToy] Android Launch!
[2010-06-30 09:46:11 - MyToy] adb is running normally.
[2010-06-30 09:46:11 - MyToy] No Launcher activity found!
[2010-06-30 09:46:11 - MyToy] The launch will only sync the application package on the device!
[2010-06-30 09:46:11 - MyToy] Performing sync
[2010-06-30 09:46:11 - MyToy] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Android_2.2'
[2010-06-30 09:46:11 - MyToy] WARNING: Application does not specify an API level requirement!
[2010-06-30 09:46:11 - MyToy] Device API version is 8 (Android 2.2)
[2010-06-30 09:46:13 - MyToy] Application already deployed. No need to reinstall.
[2010-06-30 09:46:13 - MyToy] \MyToy\bin\MyToy.apk installed on device
[2010-06-30 09:46:13 - MyToy] Done!

---and it will not launch in the emulator. There is also no icon from which to launch it in the house area.

What can I do to fix the launcher?

this may or may not be related, but I think the AndroidManifest.xml dissappeared. Any way to "regenerate" it?
peltzel
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jun 29, 2010 5:45 pm

Top

Re: activity will not launch on emulator

Postby blundell » Thu Jul 01, 2010 2:20 pm

Fix your android manifest file

http://tinyurl.com/29z93fk

http://developer.android.com/guide/topi ... intro.html

a filter with "android.intent.action.MAIN" and "android.intent.category.LAUNCHER" settings advertises an activity as one that initiates an application — that is, as one that should be displayed in the application launcher. The icon and label set in the filter are therefore the ones displayed in the launcher.
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: activity will not launch on emulator

Postby blundell » Thu Jul 01, 2010 2:21 pm

peltzel wrote:My application was working, I force shutdown my computer, and now I am getting the console output:

this may or may not be related, but I think the AndroidManifest.xml dissappeared. Any way to "regenerate" it?



AndroidManifest.xml is not generated, you write it

An example apps manifest:
http://www.androidappdocs.appspot.com/r ... ifest.html
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: activity will not launch on emulator

Postby russellbateman » Wed Jul 28, 2010 5:04 pm

Thanks for posting this answer. Yes, AndroidManifest.xml is maintained by the developer, however, Eclipse generates it automatically with the creation of a new project. For noobs, this is disconcerting to have it done correctly the first time, then missing this intent-filter element the second time--probably due to a mistake when creating the project.

Anyway, simple problem, simple answer. It probably should be a permanent post at the top of the forum.

Best,

Russ
russellbateman
Freshman
Freshman
 
Posts: 2
Joined: Wed Jul 28, 2010 5:00 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 5 guests