Search code examples
javaandroidimagegalleryresolution

How can I open an image saved within the app with the android gallery?


I have a little problem with an app I'm designing. I need to be able to open a high-res image (stored in the assets folder of the project), with the android gallery. I have tried many things, like put it in the drawables folder and retrieving the Uri (which gives Out of Memory error). I need to be able to have that high-res image without any type of compression because the user will need to zoom in a lot.

Any idea is welcome, thank you everyone in advance!


Solution

  • You have to copy your image from assets folder to external memory for the Gallery app being able to display it.