Skip to main content
morgenshtern
Participating Frequently
April 4, 2019
Question

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

  • April 4, 2019
  • 1 reply
  • 2059 views

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 has been closed for replies.

1 reply

morgenshtern
Participating Frequently
April 4, 2019

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

Frédéric C.
Inspiring
April 4, 2019

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!

morgenshtern
Participating Frequently
April 4, 2019

This is fix only for android

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