Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean "No Launcher activity found!"

I am writing a simple program of Android, and getting these no errors, I don't know what they are. My program is right, but showing not output. I think it 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! 
like image 969
Veer Avatar asked Jan 26 '11 04:01

Veer


People also ask

What do you mean by Launcher activity?

Launcher Activities are the activities that can be launched for a given intent. For example, when you press an app icon on the home screen, the StartActivity intent starts the activity you have specified as the launcher activity.

What is activity launcher Android?

Run apps in the background and create shortcuts Even better, Activity Launcher is a launcher that lets you run apps in the background. By indicating the apps you want to keep running, you no longer have to open them one by one to keep them running on your smartphone.

Can we have more than one launcher activity in Android?

On latest Android versions - If there are more than one launcher activities and if we don't put this category tag then the activity which is mentioned first in the Android manifest file will get launched as start-up activity.


1 Answers

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> 
like image 74
dbryson Avatar answered Dec 26 '22 15:12

dbryson