Cocos creator build to android samsung note 8 without fullscreen

When I build example of cocos creator and try to run it on samsung note 8. I saw that the game doesn’t display fullscreen.( black region in green eclipse).


I try to set theme of application tag in AndroidManifest.xm:

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

and set code in AppActivity.java

 // This snippet hides the system bars.
    private void hideSystemUI() {
        // Set the IMMERSIVE flag.
        // Set the content to appear under the system bars so that the content
        // doesn't resize when the system bars hide and show.
        getWindow().getDecorView().setSystemUiVisibility(
                View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                        | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                        | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar
                        | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar
                        | View.SYSTEM_UI_FLAG_IMMERSIVE);
    }

But it seem not working.

Anyone have same problem ? And what is your solution or any config ?

The problem is solved in new version cocos creator 2.4.3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.