The Digital Ad Venture
The Digital Ad Venture

Reputation: 1606

no launcher activity was found even if i had declared one in the manifest

i declared the report file as my launcher. so its supposed to launch first when the app is started first. or do i get something wrong. i get the error. no launch activity was found. thx guys

    <activity android:name=".report"   android:label="@string/app_name">
      <intent-filter>
            <action android:name="android.intent.action.REPORT" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>  
    </activity>


    <activity android:name=".Main"   android:label="@string/app_name">
        <intent-filter>

        </intent-filter> 
    </activity>

Upvotes: 0

Views: 342

Answers (1)

spatulamania
spatulamania

Reputation: 6663

You need to change the action:name from .REPORT to .MAIN. The action name corresponds to the intent action and not to the Activity name.

Fixed version of the above:

<activity android:name=".report" android:label="@string/app_name">
  <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>  
</activity>

<activity android:name=".Main" android:label="@string/app_name">
</activity>

Upvotes: 4

Related Questions