.lang.IllegalStateException: Only fullscreen opaque activities can request orientation code example
Example: Only fullscreen opaque activities can request orientation
Only fullscreen opaque activities can request orientation
You can delete
android:screenOrientation="portrait"
in you AndroidMainifest