Android M - failed to check runtime permission

后端 未结 4 1845
离开以前
离开以前 2021-01-06 15:30

I have just started working with runtime permissions on Android M. I have CAMERA, READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE declared in AndroidManifest.xml

Th

4条回答
  •  一整个雨季
    2021-01-06 16:20

    You have to change the targetSDKVersion because

    You're supposed to get PERMISSION_GRANTED for any targetSdkVersion below 23, even if the user toggled off that permission group in Settings. I suggest that you uninstall the app completely, set your targetSdkVersion to 23, and try it again.

    you can check this link

提交回复
热议问题