I develop the app which have sound recording opportunities. I declared android.permission.RECORD_AUDIO in the manifest.xml and create check this permission in run time for API level >=23.
But whan i test my app on real device (xiaomi redmi note 2 with API 21) i got a runtime request RECORD_AUDIO permission too. Whan i use emulators with API 21 a got no this request. I could check this permission for in such cases via checkSelfPermission() and onRequestPermissionsResult() but its only for API 23.
How can i handle user`s "disallow" ? And why i have this situation with API 21 ?
Aucun commentaire:
Enregistrer un commentaire