Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

Application Not Running Full Screen on Android

Open llyRayYoung opened this issue 3 years ago • 5 comments

The application was built using AIR_33.1.1.889. Our application is designed to run fullscreen for any orientation and aspect ratio, I had added the android.max_aspect meta data tag to my application, but is not work. I need your help.

The device specs and screenshots have been attached. L1VzZXJzL3lsbC9MaWJyYXJ5L0FwcGxpY2F0aW9uIFN1cHBvcnQvRGluZ1RhbGtNYWMvMzE0MDE1NjQ3X3YyL0ltYWdlRmlsZXMvMTY1NTcyMDU2Njc4Nl8xRDEyOEE2Ny00QUVBLTQzRjItQjMzMS0yRTYwQjFFMTBGRDkucG5n

llyRayYoung avatar Jun 20 '22 10:06 llyRayYoung

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

llyRayYoung avatar Jun 20 '22 10:06 llyRayYoung

Hi It may be worth checking where the max_aspect meta information is being added into the app descriptor... but with build 889 we're adding a high default value anyway, so I suspect this part is actually okay. Have you checked the values for stage.scaleMode and maybe stage.align/stage.displayState? It may also be worth tracing out values for the Screen.mainScreen bounds and visibleBounds properties.. thanks

ajwfrost avatar Jun 20 '22 14:06 ajwfrost

I also fell down that rabbit hole. You might want to look into immersive mode and hiding the status bar at runtime. I use Distriqt's Application ANE for this.

dampgnat avatar Jun 23 '22 09:06 dampgnat

Looks similar to this:

Which is caused by one of the normal fullscreen display modes on Android. As @dampgnat mentioned, you'll need to investigate immersive mode:

Application.service.display.setDisplayMode( 
    DisplayMode.IMMERSIVE, 
    LayoutMode.CUTOUT_SHORT_EDGES
);

https://docs.airnativeextensions.com/docs/application/display/

marchbold avatar Jun 23 '22 09:06 marchbold

Thanks for answering @marchbold @dampgnat Immersive mode is useful. I set immersive mode in my ane, It seemed normal

llyRayYoung avatar Jun 23 '22 10:06 llyRayYoung