Android studio Manifest's android:exported="false"

Basically, android SDK 31 requires android: exported true when this activity is open and other activities require android: exported false



Example:

<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"  
package="com.mymundane.app">
<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="com.mymundane.app"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    android:fullBackupContent="@xml/backup_descriptor">
    <activity
    android:name=".MainActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
</manifest> 

Android studio Manifest's android:exported="false" Android studio Manifest's android:exported="false" Reviewed by TechTubeHQ on February 18, 2022 Rating: 5

No comments:

Powered by Blogger.