Getting the error “No launcher Activity Found”

Total Post:102

Points:714
 1585  View(s)
Ratings:
Rate this:
I am new to android and i already have added the activity but still getting the error "No Launcher activity found"
<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="21" />
 
<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
<activity android:name=".startingPoint" 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>

  1. Post:194

    Points:1396
    Re: Getting the error “No launcher Activity Found”

    <action android:name="android.intent.action.Main" />

    should be:

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

    It's case sensitive.

    Also, your Activity should probably be named something better like StartingActivity to make it clear what type of class it is (and it shouldn't start with a lowercase letter).

      Modified On Apr-06-2018 12:09:25 AM

Answer