I don't want to keep <uses-permission android:name="android.permission.RECORD_AUDIO"/> permission in my Manifest plainly due to the fact that I am not using this in my app. But the project does not build if I don't give this permission. Do you have any solution for that?
I am using com.otaliastudios:cameraview:2.0.0-beta02 version of cameraview
What do you mean with "the project does not build"?
I meant App is crashing without any reason
Try disabling audio with cameraAudio="off"
No, I actually don't want to keep this permission in the Manifest itself, because I won't be using this.
Moreover, when I'm uploading my app to play store I have to agree to a privacy policy due to this RECORD_AUDIO permission which in my opinion is unnecessary
I understand! Try doing what I said
Where do I have to put this cameraAudio = "off" btw?
In the XML definition of your CameraView, or call cameraView.setAudio(Audio.OFF) as soon as you can
It's still crashing unfortunately
With what stacktrace?
This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.
Most helpful comment
In the XML definition of your CameraView, or call cameraView.setAudio(Audio.OFF) as soon as you can