score:158
Here's an example from AndroidManifest.xml. You need to specify the MAIN and LAUNCHER in the intent filter for the activity you want to start on launch
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:name="ExampleActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
score:0
You have not included Launcher intent filter in activity you want to appear first, so it does not know which activity to start when application launches, for this tell the system by including launcher filter intent in manifest.xml
score:1
Manifest is case sensitive, so please compare this lines for any case mismatch especially the word MAIN
in:
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
score:1
just add this to your aplication tag in AndroidManifest.xml file
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
and also edit the uses-sdk tag from android:targetSdkVersion="16" to 17
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
score:1
You missed in specifying the intent filter elements in your manifest file.Manifest file is:
<application android:label="@string/app_name" android:icon="@drawable/icon">
<activity android:name="Your Activity Name"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Add and check this correctly. Hope this will help..
score:1
You can add launcher to activity in eclipse manifest visual editor:
score:1
MAIN will decide the first activity that will used when the application will start. Launcher will add application in the application dashboard.
If you have them already and you are still getting the error message but maybe its because you might be using more than more category or action in an intent-filter. In an intent filter there can only be one such tag. To add another category, put it in another intent filter, like the following
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!--
TODO - Add necessary intent filter information so that this
Activity will accept Intents with the
action "android.intent.action.VIEW" and with an "http"
schemed URL
-->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="http" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
score:2
I had this same problem and it turns out I had a '\' instead of a '/' in the xml tag. It still gave the same error but just due to a syntax problem.
score:2
If you are using the standard eclipse IDE provided by google for Android development, you can check the "Launcher Activity" check-box while creating a new Activity. Please find below:
score:2
In Eclipse when can do this:
But it is preferable make the corresponding changes inside the Android manifest file.
score:4
As has been pointed out, this error is likely caused by a missing or incorrect intent-filter
.
I would just like to add that this error also shows up if you set android:exported="false"
on your launcher activity (in the manifest).
score:5
I fixed the problem by adding activity block in the application tag. I created the project using wizard, I don't know why my AdroidManifest.xml file was not containing application block? I added the application block:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".ToDoListActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
And I get the desired output on the emulator.
score:6
It means you didn't specify an Activity for Android to launch as the default when the app opens from the launcher. You have to add an Intent Filter in the Manifest for the Activity you would like to act as the default when the app is being launched.
Read http://developer.android.com/guide/topics/intents/intents-filters.html#ccases for more details.
score:8
Check your manifest.xml. Make sure you have the category LAUNCHER there.
<activity android:name=".myActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
score:17
Do you have an activity set up the be the launched activity when the application starts?
This is done in your Manifest.xml file, something like:
<activity android:name=".Main" android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
score:25
Like Gusdor said above, "Multiple action tags in a single intent-filter tag will also cause the same error." (Give him the credit! I could just kiss Gusdor for this!)
I didn't find any docs for this fact!
I had added a new (USB) action and being clever, I lumped it in the same intent-filter. And it broke the launch.
Like Gusdor said, one intent filter, one action!
Apparently each action should go in its own intent filter.
It should look like this...
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
When I did this, WAZOO! it worked!
score:52
Multiple action tags in a single intent-filter tag will also cause the same error.
Source: stackoverflow.com
Related Query
- What does it mean "No Launcher activity found!"
- What does the > (greater than bracket) mean beside file names in Eclipse's Package Explorer?
- What does combineaccessrules mean in Eclipse classpaths?
- What does the -clean parameter mean in the Eclipse IDE?
- what does Dead Code mean under Eclipse IDE Problems Section
- What does it mean to "Mavenize" a project?
- What exactly does "attach context" mean in Eclipse Mylyn
- What does "red cross" on project icon mean in Eclipse?
- What does it mean for a breakpoint to be installed?
- What does the number after //$NON-NLS- mean
- What does it mean arrow in editor in Eclipse?
- What does the dollar sign at the end of a class mean in Eclipse MAT?
- what does the wtpversion mean in the Eclipse plugin?
- What does the database symbol mean in Eclipse icons?
- What does the red arrow pointing up and right mean in the Package Explorer in Eclipse?
- What does dot mean in bin.includes in build.properties in Eclipse RCP?
- What does Egit mean with the number in parenthesis in Package Explorer
- what does **/*.java mean in java classpath
- What does this error mean in Eclipse when debugging?
- What does "Set an Input handler" mean in Eclipse?
- What does add to index mean in git?
- What does it mean when Android ADT is unsigned (Eclipse)
- What does a "restricted library" really mean in Java?
- What does it mean when Eclipse is building workspace?
- What does new function(settings){...}(jQuery.query || {}); mean in javascript?
- What does cr.execute mean in OpenERP development?
- What does "discouraged reference" mean in Java?
- What does this icon mean in Eclipse Project Explorer (a number with an up-arrow)?
- What does this Eclipse icon mean in a Merge Results view?
- What does "no method return value" mean in Eclipse Debug perspective?
More Query from same tag
- How to clone a eclipse installation
- Why does my Neo4j 3.0.1 Java API Code throw this error?
- Changing Indentation with Eclipse Preferences not picked up as a changeset by TortoiseHG
- Cannot change project facet java version to 1.7 (Option not available)
- Look for a auto indentation plugin for Eclipse
- Auto-completion for custom jsf taglib
- Plugin for better debugging in Eclipse IDE
- Using c++ dll made from eclipse in visual studio 2012 c#?
- How to use struts2 jquery plugin showcase to create a new project
- Eclipse problem : the selection can not be launched, and there are no recent launches
- In Eclipse Find/Replace-field can i alter the regexp-matched result $1?
- Eclipse warning error for unused function
- Performance difference when running same Java code Windows vs Unix
- Team Explorer Everywhere fails to auto merge conflicts and fails to display resolve conflicts screen in Eclipse
- Can't add servlet in Eclipse Google App Engine project
- Ignore specific commit in svn when showing annotation
- Eclipse won't start after crash
- EAR file with multiple WAR files. Sharing classes
- Trace all statements from a point in code
- Standalone Eclipse Plugin for BlackBerry
- Loading Images from Jar file only works on Development Machine?
- Webdevelopment with Jetty & Maven
- How to declare multiple activities in Manifest.xml on Android Eclipse
- Thymeleaf: org.thymeleaf.exceptions.TemplateInputException
- Deploying a Java Desktop application built in Eclipse
- How to show scala doc from Java Editor in Eclipse?
- Can I generate eclipse workspace and project manually/programmatically?
- Would there be a conflict in CVS project in eclipse when using DAO layer
- Eclipse: Moving Maven Dependencies
- How can I get the absolute path of the preference file for a particular plugin in eclipse plugin development?