Skip to content

Conversation

krupuk1
Copy link

@krupuk1 krupuk1 commented May 22, 2025

This commit introduces basic Kiosk Mode functionality and robust runtime permission handling for storage access.

Kiosk Mode Features:

  • Modified MainActivity to override the back button behavior, preventing app exit and allowing WebView backward navigation.
  • Implemented immersive mode to hide system bars for a more focused user experience.
  • Added android:lockTaskMode="if_whitelisted" to AndroidManifest.xml to enable screen pinning capabilities, a step towards a true kiosk experience.

Runtime Permissions:

  • Implemented runtime requests for WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE permissions in MainActivity.
  • Permissions are checked on app launch.
  • You are informed via a Toast message if permissions are denied, explaining their necessity.

These changes aim to provide a more controlled and user-friendly experience, especially for dedicated use cases of the application. Manual testing of screen pinning and physical button interactions is recommended to ensure desired behavior across various devices.

This commit introduces basic Kiosk Mode functionality and robust runtime permission handling for storage access.

Kiosk Mode Features:
- Modified MainActivity to override the back button behavior, preventing app exit and allowing WebView backward navigation.
- Implemented immersive mode to hide system bars for a more focused user experience.
- Added `android:lockTaskMode="if_whitelisted"` to AndroidManifest.xml to enable screen pinning capabilities, a step towards a true kiosk experience.

Runtime Permissions:
- Implemented runtime requests for `WRITE_EXTERNAL_STORAGE` and `READ_EXTERNAL_STORAGE` permissions in MainActivity.
- Permissions are checked on app launch.
- You are informed via a Toast message if permissions are denied, explaining their necessity.

These changes aim to provide a more controlled and user-friendly experience, especially for dedicated use cases of the application. Manual testing of screen pinning and physical button interactions is recommended to ensure desired behavior across various devices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant