1
- 我开发我的应用程序targetSDK 22/Android的 - 5.1
- 然而,API等级23,我需要实现请求的权限。
- 在android文档中,我读到如果使用Intent,那么我不需要请求权限。
我有下面的代码Android的 - 做我需要请求权限Intent.ACTION_IMAGE_CAPTURE
Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, 0);
我需要明确requestPermissions
以上应用情况?
我得到错误
java.lang.RuntimeException: Fail to connect to camera service
否这不需要权限。你有什么问题吗? –