What does it mean: "No Launcher activity!"

I am writing a simple Android program and not getting errors, I do not know what it is. My program is correct, but does not show the result. I think this is because of these two lines:

[2005-01-06 19:56:38 - my_Android] No Launcher activity found! [2005-01-06 19:56:38 - my_Android] The launch will only sync the application package on the device! 
+81
android eclipse
Jan 26 '11 at 4:17
source share
17 answers

Here is an example from AndroidManifest.xml. You need to specify MAIN and LAUNCHER in the intent filter for the activity that you want to start at startup

 <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> 
+153
Jan 26 2018-11-11T00:
source share

Multiple action tags in a single filter object tag also cause the same error.

+51
Jun 11 2018-12-12T00:
source share

As Gusdor said above: "Multiple action tags in a single intent filter tag also cause the same error." (Give him a loan! I could just kiss Gusdor for that!)
I did not find any documents for this fact! I added a new (USB) action and was smart, I focused it in the same intent filter. And that broke the launch. As Gusdor said, one filter of intent, one action! Apparently, each action should go in its own 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!

+23
Nov 26
source share

Do you have activity that was launched when the application started?

This is done in the Manifest.xml file, for example:

  <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> 
+16
Jan 26 '11 at 4:24
source share

Check your manifest.xml. Make sure you have the LAUNCHER category.

 <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> 
+8
Jan 26 '11 at 4:25
source share

This means that you did not specify the Activity for Android application to launch by default when the application opens from the launch bar. You must add to the Manifesto for Activity Activity Intent Filter, which you would like to use by default when starting the application.

Read more at http://developer.android.com/guide/topics/intents/intents-filters.html#ccases .

+6
Jan 26 '11 at 4:23
source share

I fixed the problem by adding an activity block to the application tag. I created the project using the wizard, I don’t know why the application block is not contained in my AdroidManifest.xml 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 result on the emulator.

+5
Jan 17 '12 at 5:59
source share

As already noted, this error is most likely caused by a missing or incorrect intent-filter .

I would like to add that this error also appears if you set android:exported="false" in your launch activity (in the manifest).

+4
Dec 14 '12 at 10:11
source share

I had the same problem and it turned out that instead of the // tag in the xml tag, I have '\'. It still threw the same error, but only because of a syntax problem.

+2
Dec 01 2018-11-12T00:
source share

If you use the standard eclipse development environment provided by Google for Android development, you can select the “Launcher Activity” checkbox when creating a new action. Below you will find:

enter image description here

+2
Oct 08 '13 at 18:57
source share

In Eclipse, when can this be done:

enter image description here

But it is advisable to make the appropriate changes to the Android manifest file.

+2
Nov 25 '14 at 23:39
source share

The manifest is case sensitive, so please compare these lines for any inconsistency, especially the MAIN in:

 <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> 
+1
Nov 27 '12 at 10:38
source share

just add this to your application tag in the AndroidManifest.xml file

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

as well as edit the uses-sdk tag from android: targetSdkVersion = "16" to 17

 <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> 
+1
Dec 17 '12 at 11:02
source share

You missed the definition of intent filter elements in the manifest file. Manifest file:

 <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 verify it correctly. Hope this helps ..

+1
Aug 21 '13 at 5:53 on
source share

You can add a run to action in the visual editor of the eclipse manifest:

Application Nodes section should look like this:

+1
Jul 21. '14 at 21:58
source share

MAIN will determine the first action that will be used when the application starts. Launcher will add the application to the application panel.

If you already have them, and you still get an error message, but maybe because you can use more or more categories or actions in the intent filter. There can only be one such tag in the target filter. To add another category, put it in a different intent filter, for example, 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> 
+1
Feb 01 '15 at 15:59
source share

You did not include the Launcher launch filter in the action that you want to display first, so it does not know what activity should be triggered when the application starts, as this tells the system, including enabling the launch filter in manifest.xml

0
Apr 24 '17 at 10:14
source share



All Articles