EasyImage
EasyImage copied to clipboard
Unable to open camera in android 11
I am facing issue in device with android 11. I have below code to open camera
EasyImage.Builder(this)
.setChooserType(ChooserType.CAMERA_AND_GALLERY)
.allowMultiple(false)
.setStateHandler(this)
.build()
and I am trying to open camera with below code
easyImage!!.openCameraForImage(this)
It is not opening camera nor giving any error
I am also facing the similar issue could someone please respond ASAP
Unable to open camera in android 11
I am also facing the similar issue could someone please respond ASAP
I'm using an old version of the library (2.1.0) but I was having the same issue, what solved for me was adding this piece of code on my AndroidManifest:
<queries>
<intent>
<action android:name="android.media.action.IMAGE_CAPTURE" />
</intent>
</queries>
If the queries
tag doesn't compile for you try to use one of those Android Gradle Plugin versions: 3.3.3, 3.4.3, 3.5.4, 3.6.4, 4.0.1.
I'm facing the same issue.
I'm using an old version of the library (2.1.0) but I was having the same issue, what solved for me was adding this piece of code on my AndroidManifest:
<queries> <intent> <action android:name="android.media.action.IMAGE_CAPTURE" /> </intent> </queries>
If the
queries
tag doesn't compile for you try to use one of those Android Gradle Plugin versions: 3.3.3, 3.4.3, 3.5.4, 3.6.4, 4.0.1.
it's working..thx