Android disable full screen mode

Question:

Good day!

Faced with such a problem, the application works in full screen mode, while a constant vertical mode is required.

With mobile applications, everything is fine, and with tablets in general, everything was fine until they were installed on a HUAWEI tablet with an EUMI shell.

The tablet itself automatically switches to horizontal mode if the application switches to full-screen mode, but we don't need that.

We have already disabled "Auto-rotate" in the settings, only one mode is also set in the application, but the tablet still automatically switches to horizontal mode. Is it possible to disable this?

UPD:

<?xml version="1.0" encoding="utf-8"?>
<stylе name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"></stylе>

UPD:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />


<application
    android:allowBackup="true"
    android:supportsRtl="true"
    android:largeHeap="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme">
    <activity android:name=".main_activity"
        android:screenOrientation="nosensor">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity><!-- ATTENTION: This was auto-generated to add Google Play services to your project for
 App Indexing.  See https://g.co/AppIndexing/AndroidStudio for more information. -->
    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
</application>

Answer:

For Activity, set android: screenOrientation = "portrait", hopefully it helps

Example:

<activity
            android:name=".ui.activity.BottomBarActivity"
            android:screenOrientation="portrait"/>
Scroll to Top
AllEscort