Reputation: 1606
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
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