Android READ_EXTERNAL_STORAGE permission not working

前端 未结 4 1620
北荒
北荒 2020-12-07 01:13

I\'m trying to create a simple app that can get an image from the Gallery app and display it on an imageButton. I\'m testing with API 21 on a phone running Android 5.0.1. Un

4条回答
  •  Happy的楠姐
    2020-12-07 01:54

    While debugging on some devices you need to grant permission explicitly by going to your settings --> apps --> MY_APPLICATION --> Permissions and then grant required permissions.

提交回复
热议问题