Configure the manifest (Android)
Configure the manifest in your Android app.
Implementation
To complete the SDK import process, use the following steps to configure AndroidManifest.xml:
-
In app/manifests/AndroidManifest.xml, in all
<activity>
elements that will contain a player, addandroid:configChanges="keyboard|keyboardHidden|orientation|screenSize"
. This prevents the Activity from being destroyed when rotated. -
(Optional) If your app reads media content from the user's device, add
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
.Android's Request App Permissions guide explains how requesting permissions works.
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<application>
...
<activity
...
android:configChanges="keyboard|keyboardHidden|orientation|screenSize" />
</application>
Updated about 1 year ago