feat: Implement Kiosk Mode and Runtime Permissions#11
Open
krupuk1 wants to merge 1 commit intoimrankst1221:masterfrom
Open
feat: Implement Kiosk Mode and Runtime Permissions#11krupuk1 wants to merge 1 commit intoimrankst1221:masterfrom
krupuk1 wants to merge 1 commit intoimrankst1221:masterfrom
Conversation
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces basic Kiosk Mode functionality and robust runtime permission handling for storage access.
Kiosk Mode Features:
android:lockTaskMode="if_whitelisted"to AndroidManifest.xml to enable screen pinning capabilities, a step towards a true kiosk experience.Runtime Permissions:
WRITE_EXTERNAL_STORAGEandREAD_EXTERNAL_STORAGEpermissions in MainActivity.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.