0

I want to use a large set of images in my application, that are used in a gallery view. However using the res folder seems not possible with larger set off images. What is the best way for including the images into my apk?

user2212461
  • 3,105
  • 8
  • 49
  • 87

2 Answers2

1

You can save the images in a database and add your database to the apk (a way to do so described here. You would read images from the database using Cursor.getBlob

Alexander Kulyakhtin
  • 47,782
  • 38
  • 107
  • 158
0

Storing all the images in the res folder will be quite a hefty job so what I recommend is that you save all the images on a web server. And then retrieve the required images from their respective URL's. The following link has a full tutorial on retrieving images from a particular URL. How to download and save an image in Android Hope it helps.

Community
  • 1
  • 1
  • thanks for the suggestion. my app should work without network or usage of external storage. is there still a way to manage the images? – user2212461 Jul 27 '14 at 13:05