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 and gallery doesn't show

See original GitHub issue

I have already implemented

implementation ‘com.github.dhaval2404:imagepicker-support:1.5’ implementation ‘com.github.florent37:inline-activity-result-kotlin:1.0.1’

on my gradle. and this is my code ImagePicker.with(this) .compress(600) .start { resultCode, dataIntent -> Log.e("image-picker", "picker start") if (resultCode == Activity.RESULT_OK){ val imageUri = dataIntent?.data imageView.setImageURI(imageUri) val imageFilePath = ImagePicker.getFilePath(dataIntent) Log.e("image-picker", "image path:$imageFilePath") }else if (resultCode == ImagePicker.RESULT_ERROR){ Log.e("image-picker", "image picker error") }else{ Log.e("image-picker", "task cancelled") } }

I try at the AppCompatActivity. Dialog for choose taking image from camera or gallery is showed. but when I choosed camera or gallery it doesn’t show anything. it doesn’t show camera or my gallery to take image.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ilhamfidatamacommented, Apr 4, 2020

I solved it it because I used permission to read and write storage on manifest. so I deleted it.

0reactions
HosseinKurdcommented, Apr 12, 2021

I solved it it because I used permission to read and write storage on manifest. so I deleted it.

Not works in my case

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pictures and videos not showing in the gallery
Solution 1 · Go to File manager -> Android -> Data -> com.android. · Delete the folder ( com.android. · Go to Settings...
Read more >
Why Can't I See My Pictures in My Gallery, How to Fix?
Part 2. What to Do If Android Gallery Doesn't Show Pictures? · Method 1. Check if the Album is Hidden · Method 2....
Read more >
Why Can't I See My Pictures in My Gallery? [Causes & Fixes]
Part 2: What If Android Gallery Doesn't Show Pictures? (11 Tricks) · Trick 1: Ensure you didn't close the camera immediately after snapping...
Read more >
Pictures Taken with Camera Doesn't Save in Gallery [Fixed]
Pictures Taken with Camera Doesn't Save in Gallery [Fixed] ; Fix 1: Restart your Device · restart android phone ; Fix 2: Make...
Read more >
How to fix Pictures Not Showing in Gallery - A Savvy Web
To fix pictures not showing in gallery or showing blank you need to clear cache and clear data of gallery app on 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