Android Marshmallow : java.lang.RuntimeException: Fail to connect to camera service

六眼飞鱼酱① 提交于 2019-12-07 18:05:27

Read this Steps from given link :

1: Request the permissions you need

2: Handle the permissions request response

click me

From Android 23 on, you need to request a permission every time your need it at runtime. So it is not enought to declare the permission in your manifest, you need to request it in code, too.

Please take a look at the google docs about this issue: http://developer.android.com/intl/es/training/permissions/requesting.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!