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.

Unable to see image gallery in Android while picking image

See original GitHub issue

Hi, thanks for the awesome package. I am having some difficulty in using the package on Android simulator running via Genymotion. When the showImagePicker call is made, a pop up is shown to ask the user for a source of the image. There I select Choose From Library... and then a permission box appears show below. When I click Allow, the permission box disappears nothing happens.

screen shot 2016-08-11 at 12 40 53 pm

I see that people have opened issues w.r.t. to Android, so they are able to use it successfully. Is it a problem with the emulator. Am I missing some permissions in the AndroidManifest.xml file. I don’t have an Android phone on me right now due to which I am not able to test on an actual phone. The code works on iPhone (both simulator and actual device) seamlessly.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
mickeyinfoshancommented, Aug 12, 2016

@varungupta85 I think you need to add these lines to AndroidManifest.xml:

 <!-- add following permissions -->
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-feature android:name="android.hardware.camera" android:required="false"/>
    <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
    <!-- -->
0reactions
peterleilei86commented, Dec 19, 2017

I am experiencing the same issue on my android device. After allowing the permissions, nothing happens and I have to tap one of the options again to either open the camera or open the image library. On ios, the camera will open immediately after i allow the permissions.

Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to see image gallery in Android while picking ... - GitHub
When the showImagePicker call is made, a pop up is shown to ask the user for a source of the image. There I...
Read more >
Image picked from gallery is not getting set in image view
I found the Solution for the question, now I am able to set the image to imageview by both camera and gallery, what...
Read more >
How to fix picture not showing up in phone gallery - YouTube
Key moments. View all · select all the pictures · select all the pictures · select all the pictures · create a folder...
Read more >
Pictures Not Showing up in Gallery Fix - YouTube
Key moments. View all · Restart the Device · Restart the Device · Restart the Device · Es File Explorer · Es File...
Read more >
image_picker | Flutter Package - Pub.dev
Flutter plugin for selecting images from the Android and iOS image library, and taking new pictures with the camera.
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