Page tree
Skip to end of metadata
Go to start of metadata

Code Integration

Steps for Android 

  1. Add DFP Android Mediation Adapter and LightWeight SDK to your application’s Libs folder.
  2. Configure the manifest:
    1. Configure Application Permissions.
    2. Add the below permissions to your application manifest.xml.
    3. Set necessary permissions.
  3. The below permissions are required to use Vdopia SDK.  In case you do not enable them, the SDK will throw an exception to inform you that “INTERNET/ACCESS_NETWORK_STATE permissions must be enabled in AndroidManifest.xml”

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  4. Set optional permissions

    1. The below permissions are used for targeting purpose. The Vdopia SDK will continue to work even if you decide not to add any of the permissions below.

        <uses-permission android:name="android.permission.GET_ACCOUNTS" />
        <uses-permission android:name="android.permission.READ_PHONE_STATE" />
        <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
  5. Add the SDK’s Activities to your AndroidManifest.

    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" >
    android:name=""      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" >
  6. Configure Orientation Changes Handling
    It is highly recommended to prevent the system from restarting your activity when the screen orientation changes. Add the below attribute to your activity tag:


  • No labels