Greetings, all.
This is a difficult question. I thank you in advance for your replies.
QUESTION
Since JAVA is coffee to me, how would the 3 approaches shown below be implemented with the Java Object?
OR
How would this be done in Version 4.30 of B4A where Java code can be inserted in the B4A code?
Best regards.
Sandy
https://developer.android.com/training/system-ui/immersive.html
This is a difficult question. I thank you in advance for your replies.
QUESTION
Since JAVA is coffee to me, how would the 3 approaches shown below be implemented with the Java Object?
OR
How would this be done in Version 4.30 of B4A where Java code can be inserted in the B4A code?
Best regards.
Sandy
https://developer.android.com/training/system-ui/immersive.html
Choose an Approach
The flags SYSTEM_UI_FLAG_IMMERSIVE and SYSTEM_UI_FLAG_IMMERSIVE_STICKY both provide an immersive experience, but with the differences in behavior described above. Here are examples of when you would use one flag vs. the other:
.
- If you're building a book reader, news reader, or a magazine, use the IMMERSIVE flag in conjunction with SYSTEM_UI_FLAG_FULLSCREEN and SYSTEM_UI_FLAG_HIDE_NAVIGATION. Because users may want to access the action bar and other UI controls somewhat frequently, but not be bothered with any UI elements while flipping through content, IMMERSIVE is a good option for this use case.
- If you're building a truly immersive app, where you expect users to interact near the edges of the screen and you don't expect them to need frequent access to the system UI, use the IMMERSIVE_STICKY flag in conjunction with SYSTEM_UI_FLAG_FULLSCREEN and SYSTEM_UI_FLAG_HIDE_NAVIGATION. For example, this approach might be suitable for a game or a drawing app.
- If you're building a video player or some other app that requires minimal user interaction, you can probably get by with the lean back approach, available since Android 4.0 (API Level 14). For this type of app, simply using SYSTEM_UI_FLAG_FULLSCREEN and SYSTEM_UI_FLAG_HIDE_NAVIGATION should be sufficient. Don't use the "immersive" flags in this case.