Skip to content Skip to sidebar Skip to footer

Android - Open Image From Drawable In Default Gallery Application

I'm working on app that have number of imageviews, when i click on the image i want it to open via android default gallery image picker. i've tried in this way : String str = 'andr

Solution 1:

That is because there is no activity on your device capable of viewing an image residing at a Uri with the android:resource:// scheme. If I had to guess, ~99% of Android devices will have a similar problem.

Either write your own image viewer, or move the image someplace that third-party apps are more likely to support, such as your own ContentProvider or a local file.

Post a Comment for "Android - Open Image From Drawable In Default Gallery Application"