-
Notifications
You must be signed in to change notification settings - Fork 0
Remove Android immersive mode
Benjamin Hoffmann edited this page Jul 22, 2015
·
3 revisions
This template uses Android immersive mode witch is only compatible with Android 19 or greater.
If you want to compile your app in a lower version than 19, you have to remove the immersive mode. To do that, you just have to comment the content of SetSystemUiVisibility function in "YourAppTemplate\resources\android\com\YourStudioName\YourAppName\YourAppName.java" :
private void SetSystemUiVisibility()
{
// 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_STICKY);
}