Reputation: 13
When i add screens(src folder) info in manifest file i got this warning "Exported activity does not require permission" , but can't able to solve this problem.Can anybody provide solution for this. Please suggest me how add screens(src folder) in Manifest file
<application android:allowBackup="true" android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:theme="@style/AppTheme">
<activity android:name="com.projectmine.Simpleproject">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
>
</activity>
<activity
android:name="com.projectmine.MainActivity">
<intent-filter>
<action android:name="com.projectmine.MAINACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
Upvotes: 2
Views: 935
Reputation: 11711
This is an erroneous warning, that has been filed a related issue here by CommonsWare for that should be fixed someday.
For similar thread visit here
Upvotes: 0
Reputation: 10395
Add
android:exported="false"
to your Activity definition
Edit: you can have more information about android:exported on : Android Guide
also as rIHaN JiTHiN 's answer it might occurred because of intent filters of your MainActivity
Upvotes: 1
Reputation: 6588
Please try this:
<application android:allowBackup="true" android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:theme="@style/AppTheme">
<activity android:name="com.projectmine.Simpleproject">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.projectmine.MainActivity">
</activity>
Upvotes: 4