prevent android app from rotating code example Example: how to prevent screen rotating in app android studio android:screenOrientation="portrait or landscape"