-
Notifications
You must be signed in to change notification settings - Fork 513
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
Android6.0以上拍照闪退 #167
Comments
日志 |
07-21 17:20:00.187 3200-3200/com.zhixin.partyconstructionwebapp D/AndroidRuntime: Shutting down VM
07-21 17:20:00.187 3200-3200/com.zhixin.partyconstructionwebapp E/AndroidRuntime: FATAL EXCEPTION: main |
java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.android.camera2/com.android.camera.CaptureActivity clip={text/uri-list U:file:///storage/emulated/0/DCIM/IMMQY/IMG_20170721172000.jpg} (has extras) } from ProcessRecord{fe2781c 3200:com.zhixin.partyconstructionwebapp/u0a131} (pid=3200, uid=10131) with revoked permission android.permission.CAMERA |
你有没有在你的 Androidmanifest.xml 下 申请 android.permission.CAMERA,Library的 Androidmanifest 什么都没有写,还是建议在使用之前就申请到所有的权限,我这边会在处理下 点击 拍照的权限问题 |
写了,并没有什么用,我必须在代码里面动态申请才不会闪退
原始邮件
发件人:@notifications@github.com
收件人:FinalTeam/RxGalleryFinalRxGalleryFinal@noreply.github.com
抄送:IdyllicFish593353831@qq.com; Authorauthor@noreply.github.com
发送时间:2017年7月23日(周日) 22:17
主题:Re: [FinalTeam/RxGalleryFinal] Android6.0以上拍照闪退 (#167)
你有没有在你的 Androidmanifest.xml 下 申请 android.permission.CAMERA,Library的 Androidmanifest 什么都没有写,还是建议在使用之前就申请到所有的权限,我这边会在处理下 点击 拍照的权限问题
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
我刚才看了下 ,代码中没有对camera权限做处理,我稍后会处理下,sample取巧了. |
谢谢
辛苦了😊
原始邮件
发件人:@notifications@github.com
收件人:FinalTeam/RxGalleryFinalRxGalleryFinal@noreply.github.com
抄送:IdyllicFish593353831@qq.com; Authorauthor@noreply.github.com
发送时间:2017年7月23日(周日) 23:03
主题:Re: [FinalTeam/RxGalleryFinal] Android6.0以上拍照闪退 (#167)
我刚才看了下 ,代码中没有对camera权限做处理,我稍后会处理下,sample取巧了.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
FIX |
貌似是因为拍照没有动态申请拍照的权限
希望能够修复 不然只能在需打开相册之前就手动申请相机权限
The text was updated successfully, but these errors were encountered: