W/CameraBase﹕ An error occurred while connecting to camera: 0

前端 未结 3 1711
走了就别回头了
走了就别回头了 2020-12-16 16:30

There was a similar question but it went unresolved:

W/CameraBase﹕ An error occurred while connecting to camera: 0 on camera.open() call

I have an app which

3条回答
  •  孤城傲影
    2020-12-16 17:03

    Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app. This approach streamlines the app install process, since the user does not need to grant permissions when they install or update the app. It also gives the user more control over the app's functionality; for example, a user could choose to give a camera app access to the camera but not to the device location. The user can revoke the permissions at any time, by going to the app's Settings screen. http://developer.android.com/training/permissions/requesting.html

提交回复
热议问题