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