question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Camera doesn't show

See original GitHub issue

If I want to select image from camera, nothing happens. I tried on two different ways:

ImagePicker.with(this)
        .crop()
        .start()

Nothing happens if I click on Camera button. And:

ImagePicker.with(this)
        .crop()
        .cameraOnly()
        .start()

Nothing happens at all. There is also nothing in logs.

I’m using Google Pixel 3 Android 11 (API 30).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
Dhaval2404commented, Jan 3, 2021

For an immediate solution, please add queries into your AndroidManifest.xml

<manifest package="com.github.dhaval2404.imagepicker">

    <application>


    </application>


    <queries>
        <!-- Camera -->
        <intent>
            <action android:name="android.media.action.IMAGE_CAPTURE" />
        </intent>
    </queries>

</manifest>
1reaction
odolejsicommented, Dec 29, 2020

I just ran into this as well after updating to 1.8 (to fix the crash with uCrop on super high resolution phones). The error coming from ImagePicker is:

java.lang.Throwable: Camera app not found

I also had ImagePicker request the camera permissions itself… is it possible that the check for existence of camera app returns null before permissions are granted? https://github.com/Dhaval2404/ImagePicker/commit/d26715d0419400214176950d3e5149083e383e76#diff-bf5de81807b1b0ec03a274ef62f61843f9cc14fafdadac5452d371c62a550f06R85

Read more comments on GitHub >

github_iconTop Results From Across the Web

Camera doesn't work in Windows - Microsoft Support
Try a different USB port and scan for hardware changes · Select Start ; Roll back the camera driver · In Device Manager...
Read more >
6 Quick Tips to Fix Your Laptop Camera if it's not Working
Run the Hardware troubleshooter · Update the laptop camera driver · Reinstall the laptop camera · Roll back driver · Check your antivirus...
Read more >
How to Fix Camera Missing in Device Manager Quickly
Open Device Manager. · Select Cameras (or Imaging devices/ USB devices) and click Action > Scan for hardware changes. · If your webcam...
Read more >
How to Fix Camera Not Working on Android - Carlcare
1. Reboot device · 2. Switch off device · 3. Recharge device battery if low · 4. Clear App Data · 5. Check...
Read more >
Top 7 Ways to Fix Camera App Not Working on Android
1. Check Permissions · 2. Check If Another App Is Already Using Camera · 3. Force Stop Camera · 4. Cool Down Your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found