Android: Permission Denial: starting Intent with revoked permission android.permission.CAMERA

后端 未结 10 1359
一个人的身影
一个人的身影 2020-11-29 07:47

I\'m trying to start a ACTION_IMAGE_CAPTURE activity in order to take a picture in my app and I\'m getting the error in the subject.

Stacktrace:

10条回答
  •  情深已故
    2020-11-29 08:41

    As some have pointed out, one solution is removing the Camera Permission from AndroidManifest.xml, i.e., remove this line:

    
    

    However, that was not enough for me, as I needed the Camera Permission for something else in my app. So what worked for me was tagging that permission as not required, like this:

    
    

提交回复
热议问题