Java to B4A Equivalent

Bill Norris

Active Member
Licensed User
Longtime User
I am using a 3rd party app that allows me to run my device in kiosk mode. The developer says I need to add the following code to activity_create. This is part of the functionality that allows that app to disable the bottom bar of the screen. Can anyone give the b4A equivalent of this Java code?

B4X:
this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
                                            | 
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD
                                            | 
WindowManager.LayoutParams.FLAG_FULLSCREEN);
this.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
 

Bill Norris

Active Member
Licensed User
Longtime User
Thanks

Thank you Mr. Erel -- I was afraid I might be stretching things a bit by asking Java question.

Much Appreciated!
 
Upvote 0

Ricky D

Well-Known Member
Licensed User
Longtime User
What is kiosk mode? I see it used everywhere but no description of what it is

regards Ricky
 
Upvote 0
Top