Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open camera in android 11 #249

Open
chikka opened this issue Jul 14, 2021 · 5 comments
Open

Unable to open camera in android 11 #249

chikka opened this issue Jul 14, 2021 · 5 comments

Comments

@chikka
Copy link

chikka commented Jul 14, 2021

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

@sahithiganta
Copy link

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

@ChetanPatelSS
Copy link

Unable to open camera in android 11

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

@alanastone
Copy link

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.

@OlukaDenis
Copy link

I'm facing the same issue.

@RyugaBahira
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants