This shows you the differences between two versions of the page.
| |
lwc:programming:mobile:android:immersive_mode [2021/12/08 09:01] – created John Harrison | lwc:programming:mobile:android:immersive_mode [2021/12/14 08:51] (current) – John Harrison |
---|
===== Immersive Mode ===== | ===== Immersive Mode ===== |
| ==== KitKat (4.4) ==== |
| Immersive mode shows a confirmation dialog that shows up the first time the app uses immersive mode. It then adds the app ID to a list of IDs to remember not to show the dialog box again. If the user turns off and on the device within 5 seconds the device assumes the user is in a "panic" mode where they can't figure out how to get back to the navigation menus so the app ID is removed from the list and the dialog box is shown again. [[https://www.xda-developers.com/xposed-framework-hub/|Xposed]] has [[https://repo.xposed.info/module/com.germainz.immersivemodedontpanic|a module to disable "panic mode"]]. |
| * [[https://stackoverflow.com/questions/20075041/immersive-mode-instructions-reappear-every-time-the-device-enters-this-mode|description of the dialog confirmation mode logic with code snippet]] |
| * to see the list of apps who have already seen the confirmation from the adb shell: ''settings get secure immersive_mode_confirmations'' |
| * [[https://android.googlesource.com/platform/frameworks/base/+/kitkat-release/policy/src/com/android/internal/policy/impl/ImmersiveModeConfirmation.java|Android AOSP ImmersiveModeConfirmation.java]] |
| * [[https://github.com/GermainZ/ImmersiveModeDontPanic/blob/master/app/src/main/java/com/germainz/immersivemodedontpanic/XposedMod.java|Code to Xposed's 'Don't Panic' module]] to disable panic mode |
| |