Hi all,
are Permissions allowed to be requested in a secondary Activity? I guess so, but..
yesterday I was playing with the excellent lib QRCodeReaderView by @Johan Schoeman and tried to ask for the Camera permission in a secondary (i.e. not Main) activity. It failed, crashing the app.
Moving the CheckAndRequest to Main solved the problem.
So my question is: can we request Permissions in a secondary activity?
If yes, could my problem be due to:
1. my phone (Android 7, Manifest set to targetsdk = 26)
2. the lib
3. something in my coding
TIA
are Permissions allowed to be requested in a secondary Activity? I guess so, but..
yesterday I was playing with the excellent lib QRCodeReaderView by @Johan Schoeman and tried to ask for the Camera permission in a secondary (i.e. not Main) activity. It failed, crashing the app.
Moving the CheckAndRequest to Main solved the problem.
So my question is: can we request Permissions in a secondary activity?
If yes, could my problem be due to:
1. my phone (Android 7, Manifest set to targetsdk = 26)
2. the lib
3. something in my coding
TIA
Last edited: