permission error in android 6.0
Closed this issue · 4 comments
AndwareSsj commented
build library in:
ANDROID_BUILD_TARGET_SDK_VERSION=23
ANDROID_BUILD_TOOLS_VERSION=23.0.1
ANDROID_BUILD_SDK_VERSION=23
YancyYe commented
我这边测试没问题 你能不能在测一测
fishyer commented
6.0的时候需要运行时验证权限,ImageSelectorActivity需要修改一下,否则会报错:
java.lang.SecurityException: Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.android.camera/.Camera clip={text/uri-list U:file:///storage/emulated/0/ImageSelector/Pictures/20160516160155.jpg} (has extras) } from ProcessRecord{c2f8bde 23322:com.che.carcheck/u0a128} (pid=23322, uid=10128) with revoked permission android.permission.CAMERA
AndwareSsj commented
@fishyer best way to use permissionsdispatcher
YancyYe commented