Configure the manifest
Last updated: May 9, 2019
To complete the SDK import process, use the following steps to configure the AndroidManifest.xml file:
- Open the app/manifests/AndroidManifest.xml file.
- In the
<application>element, use a
<meta-data/>element to add your JW Player license key. If you are using the Demo app, be sure to uncomment the
- In all
<activity>elements that will contain a player, add
android:configChanges="keyboard|keyboardHidden|orientation|screenSize". This prevents the Activity from being destroyed when rotated. If you are using the Demo app, this is already included.
- (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.
<application> ... <meta-data android:name="JW_LICENSE_KEY" android:value="abcD1234edf56GHiJK789lm0N" /> <activity ... android:configChanges="keyboard|keyboardHidden|orientation|screenSize"> </activity> </application>
You have configured the manifest. You can now add the player to your activity.
Use this form to provide your feedback.
Previous Page Next Page