Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拒绝给予读取图片权限未关闭页面,点击拍照给予拍照权限崩溃 #59

Open
DuShuYuan opened this issue May 9, 2020 · 0 comments

Comments

@DuShuYuan
Copy link

====

java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=24183, uid=10302 requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission() at android.os.Parcel.createException(Parcel.java:1953) at android.os.Parcel.readException(Parcel.java:1921) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135) at android.content.ContentProviderProxy.insert(ContentProviderNative.java:476) at android.content.ContentResolver.insert(ContentResolver.java:1611) at com.lzy.imagepicker.ImagePicker.takePicSupportQ(ImagePicker.java:267) at com.lzy.imagepicker.ImagePicker.takePicture(ImagePicker.java:254) at com.lzy.imagepicker.adapter.ImageRecyclerAdapter$CameraViewHolder$1.onClick(ImageRecyclerAdapter.java:188) at android.view.View.performClick(View.java:6652) at android.view.View.performClickInternal(View.java:6624) at android.view.View.access$3100(View.java:787) at android.view.View$PerformClick.run(View.java:26213) at android.os.Handler.handleCallback(Handler.java:891) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:7470) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant