I am facing the problem while retrieving the contacts from the contact book in Android 8.0 Oreo java.lang.IllegalStateException: Only fullscreen opaque activities can reques
it seems when target sdk is pie (api level 28.0) and windowIsTranslucent is true
and you try to access orientation. problem comes with android oreo 8.0 (api level 26) there are two ways to solve this
if you are setting orientation in manifest like this
android:screenOrientation="portrait"
or in activity class like this
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
remove form both places.
and observed when u set windowIsTranslucent to true, it takes orientation from parent activity.