Based on: https://www.b4x.com/android/forum/threads/immersive-mode-hide-the-navigation-bar.90882/#content
Sub Globals
Dim immersive As ImmersiveMode
End Sub
Sub Activity_Create(FirstTime As Boolean)
immersive.Initialize(Activity)
Activity.LoadLayout("Layout")
End Sub
Sub...
Hi everyone, I'm developing a Kiosk App.
I set the app to go in Immersive Mode, however it is still possible for the user to show the android navigation and status bars… since it must be a kiosk app I do not want to have any android UI in it... is it possible to permanently hide the navigation...
Following the tutorial here I was able to display the application in full screen Iimmersive mode), including over the notch area.
It is possible to set the option (cover/not cover notch area0 from the code, not from the Manifest file?
Some smartphones can have a bigger notch and then to cover...
Dim jo As JavaObject = Activity
jo.RunMethod("setSystemUiVisibility", Array As Object(5894)) '--> status bar area becomes 100% black, non-visible
jo = jo.RunMethod("getResources", Null)
Dim ResourceID As Int = jo.RunMethod("getIdentifier", Array As Object("status_bar_height", "dimen"...
Hi There
I am using the code posted in here to hide the status & navigation bars. When the user opens another activity the status bar get displayed for a second or so then disappears. Is there a way to prevent this behavior from happening? Note that the second activity also contains the same...
At least on my smartphone (Huawei - Android 8), the source code published here to "set the immersive mode" is not always enough; rotating the device (changing the activity orientation), sometimes (33% of cases?) the navigation bar remain visible.
The code worked perfectly in Debug mode, so I...
Original tutorial: Immersive Mode - hide the navigation bar (by @Erel )
So the above tutorial works for those devices which do not have a Notch. Devices with a notch will crop the bottom of the application content.
Solution (Project attached):
Add this code to GetRealSize sub of the original...
I "set" immersive mode for the Main; from here I start another Activity and Activity_WindowFocusChanged causes a crash if I start the app in debug mode (see the test project attached).
Tested only on an Android 4.4.2.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.