Skip to main content
morgenshtern
Participating Frequently
Apr 4, 2019 4:26 PM UTC
Question

AIR don't occupy whole screen on new Samsung galaxy devices

On some Samsung devices (galaxy s8/s8+ for example AIR don't occupy whole screen. It has black space below AIR container (see pic).
Even if I activate "iPhone X Gesture style" without navigation bar. Even in IMMERSIVE mode.

Reported resolution is 1090*2009.

App xml:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<application xmlns="http://ns.adobe.com/air/application/32.0">

    <id>com.den.test</id>

    <filename>TEST</filename>

    <name>Test</name>

    <versionLabel>0.0.1</versionLabel>

    <versionNumber>0.0.1</versionNumber>

    <initialWindow>

        <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>

        <renderMode>direct</renderMode>

        <softKeyboardBehavior>pan</softKeyboardBehavior>

        <autoOrients>true</autoOrients>

        <fullScreen>false</fullScreen>

    </initialWindow>

    <android>

        <containsVideo>true</containsVideo>

        <manifestAdditions> <![CDATA[

       <manifest android:installLocation="auto">

        <uses-sdk

                    android:minSdkVersion="15"

                    android:targetSdkVersion="26" />

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

            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

            <uses-permission android:name="android.permission.CAMERA"/>

            <application android:enabled="true"

                    android:hardwareAccelerated="true"

                    android:largeHeap="true"

                    android:allowClearUserData="true"

                    android:name="android.support.multidex.MultiDexApplication">

              

            </application>

            <supports-screens android:smallScreens="true"

                              android:normalScreens="true"

                              android:largeScreens="true"

                              android:xlargeScreens="true"

                              android:anyDensity="true"/>

        </manifest>

        ]]></manifestAdditions>

    </android>

</application>

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

morgenshtern
Participating Frequently
Apr 4, 2019 4:38 PM UTC

Solution is:

<application android:hardwareAccelerated="true">

          <!-- this lets you support devices larger than 16:9 ratio -->

          <meta-data android:name="android.max_aspect" android:value="2.16" />

</application>

https://forums.adobe.com/thread/2567541

Translate
Frédéric C.
Inspiring
Apr 4, 2019 5:29 PM UTC

Thank you very much for providing a solution. Would you please show us a screenshot with the fix implemented? I'd like to know if it interferes with the bottom UI, like the iPhone X. Thank you!

Translate
morgenshtern
Participating Frequently
Apr 4, 2019 5:34 PM UTC

This is fix only for android

And i have no such problem on iPhone X / XR / XS with.

Translate