Skip to content

Update Android Manifest

Update your AndroidManifest.xml

Add the following <activity> declaration inside <application> tag of the Manifest.

<activity
   android:name="com.greedygame.android.core.campaign.uii.web.GGWebActivity"
   android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|layoutDirection"
   android:hardwareAccelerated="true"
   android:launchMode="singleTask"
   android:screenOrientation="landscape"
   android:theme="@style/Theme.GGTransparent"/>

<activity
   android:name="com.greedygame.android.core.mediation.greedygame.GGS2SActivity"
   android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|layoutDirection"
   android:hardwareAccelerated="true"
   android:launchMode="singleTask"
   android:screenOrientation="landscape"
   android:theme="@style/Theme.GGTransparent"/>

<activity
   android:name="com.greedygame.android.core.mediation.admob.GGAdMobActivity"
   android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|layoutDirection"
   android:hardwareAccelerated="true"
   android:launchMode="singleTask"
   android:screenOrientation="landscape"
   android:theme="@style/Theme.GGTransparent"/>

Also, note the highlighted line where you can change the orientation of the screenOrientation property based on which orientation you want to open the engagment. All the allowed values can be found in Android Documentation.

Warning

  • Ensure that you have added all the Activities

  • Ensure that you have changed the orientation according to your app's orientation