You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
I'm working on an app that needs bluetooth and mic permission. I am able to request the permission, but unable to handle the callback. My app hangs after permissions has been granted or rejected. Everyone (docs and yt) prescribes handling permission in the MainActivity, but something about it doesn't sit well with me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on an app that needs bluetooth and mic permission. I am able to request the permission, but unable to handle the callback. My app hangs after permissions has been granted or rejected. Everyone (docs and yt) prescribes handling permission in the MainActivity, but something about it doesn't sit well with me.
I see this app has done something slightly differently I've structured my code inspired from this repository. Here is my code: https://gitlab.com/yozachar/hearken/-/tree/main/app/src/main/java/com/yozachar/apps/hearken?ref_type=heads
I'm requesting permission only when the user clicks a button. How can I handle it properly? Could someone help me out?
Beta Was this translation helpful? Give feedback.
All reactions