java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider ur...

java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/20 from pid=711, uid=10074 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

打开系统自带相册权限不足,应该做如下改动

代码中加入权限检查:

java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider ur..._第1张图片

 

转载于:https://www.cnblogs.com/YunzhuChen/p/10701540.html

你可能感兴趣的:(java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider ur...)