lwc:programming:mobile:android:immersive_mode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

lwc:programming:mobile:android:immersive_mode [2021/12/08 09:01] – created John Harrisonlwc:programming:mobile:android:immersive_mode [2021/12/14 08:51] (current) John Harrison
Line 1: Line 1:
 ===== 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
  
  • lwc/programming/mobile/android/immersive_mode.1638975713.txt.gz
  • Last modified: 2021/12/08 09:01
  • by John Harrison