EasyImage icon indicating copy to clipboard operation
EasyImage copied to clipboard

Unable to open camera in android 11

Open chikka opened this issue 3 years ago • 5 comments

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

chikka avatar Jul 14 '21 15:07 chikka

I am also facing the similar issue could someone please respond ASAP

sahithiganta avatar Jul 16 '21 03:07 sahithiganta

Unable to open camera in android 11

I am also facing the similar issue could someone please respond ASAP

ChetanPatelSS avatar Jul 30 '21 08:07 ChetanPatelSS

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.

alanastone avatar Aug 11 '21 00:08 alanastone

I'm facing the same issue.

OlukaDenis avatar Aug 20 '21 10:08 OlukaDenis

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

RyugaBahira avatar Oct 08 '21 01:10 RyugaBahira