AndroidHarness : display under the cutout

I would like to extend AndroidHarness to extend the display under the notch / display cutouts (see Support display cutouts  |  Android Developers).

The current fullscreen option is not sufficient for this, but I achieved the desired result by adding the flag WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS :

    public void onCreate(Bundle savedInstanceState) {


        if (screenFullScreen) {
            int flags = WindowManager.LayoutParams.FLAG_FULLSCREEN 
                    | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS;
            getWindow().setFlags(flags, flags);

I guess an option would be interesting for this need, unless you have another solution ?

1 Like

Thanks for the suggestion, months ago, i was working to replace the AndroidHarness by CompatHarness, that adds the AppCompatActivity functionalities to the jme game plus some window features like Immersion mode, landscape and portrait, so i will consider this option too…

You can open an issue on jme github for your request, so we don’t forget !

1 Like

Done :wink:

1 Like