I have an app with Admob SDK used in it, to show Interstitial ads (full screen ads).
Reccently Google has updated the SDK, along with many other
In Android Oreo You can't change the orientation by code so you have check whenever change the orientation
if (android.os.Build.VERSION.SDK_INT < Build.VERSION_CODES.O) { activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); }