No such file or Directory only in Android 6.0

前端 未结 4 1101
感情败类
感情败类 2021-01-27 19:09

Below code is working fine on pre-Marshmallow devices but not in Marshmallow.

These are the permissions in Manifest



        
4条回答
  •  遇见更好的自我
    2021-01-27 19:24

    Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app.

    This is why it works in pre-lolipop versions, and doesn't on API 23. Permissions in Android Manifest alone are not enough, you need to add them at runtime as well. Refer here for more details.

提交回复
热议问题