Camera doesn't showSee 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).
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
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>
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