Immersive support for Android games
Monkey Targets Forums/Android/Immersive support for Android games
| ||
The community here is very supportive, so here is my little contribution! Android 4.4 (KitKat) and later support a so called Immersive mode for the soft navigation buttons. This allows them to be hidden but displayed again after swiping down from where the status bar should be. Full details are available here: https://developer.android.com/training/system-ui/immersive.html There are two source files and 2 steps to perform. immersive.monkey immersive.android.java Integration * Set targetSdkVersion to 19 or greater in the application manifest (you can do this in the templates folder of the android build folder) * Make a call to EnableImmersiveMode() early in your code. I like to do it immediately after the loading screen has finished. * Open a beer! You're done! I will be updating my game Hop Or Pop with this in the next few days, but I have tested on 5 physical devices and the emulator covering a range of sdk versions. Happy New Year everyone! |
| ||
Very nice! Will test soon! |