0

I am working on a business application. What I need to do is to set the app in full screen mode (like kiosk mode). The user must not be able to exit this full screen, or use a pin to exit it.

I am able to set full screen the activity using:

window.AndroidFullScreen.setSystemUiVisibility(
                  AndroidFullScreen.SYSTEM_UI_FLAG_LAYOUT_STABLE
                                      | AndroidFullScreen.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                                      | AndroidFullScreen.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                                      | AndroidFullScreen.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                                      | AndroidFullScreen.SYSTEM_UI_FLAG_FULLSCREEN
                                      | AndroidFullScreen.SYSTEM_UI_FLAG_IMMERSIVE_STICKY,

The user anyway is still able to exit performing a swipe and pressing the menu with 2 fingers. Is there any way to lock this behaviour and prevent exiting (maybe with a event handler)?

Is there any other option to set the app programmatically full screen?

Thankyou

Nadir Bertolasi
  • 527
  • 6
  • 17

0 Answers0