Configure the manifest (Android v3)

Configure the manifest in your Android project.

To complete the SDK import process, use the following steps to configure the AndroidManifest.xml file:

  1. In the app/manifests/AndroidManifest.xml file, 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.
  2. Add a <meta-data /> element with your JWP license key.


For added flexibility, you should consider remotely storing the key and setting it at runtime. This approach enables you to update the license key of the player without needing to resubmit your app to the Play Store.

  1. (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"/>

        android:configChanges="keyboard|keyboardHidden|orientation|screenSize" />
        android:value="abcD1234edf56GHiJK789lm0N" />

You have configured the manifest. You can now add the player to your activity.