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?
Asked
Active
Viewed 35 times
0
-
Define "large". Hundreds? Thousands? Megabytes? Gigabytes? – Barend Jul 27 '14 at 12:47
-
15MB, about 300images – user2212461 Jul 27 '14 at 12:48
2 Answers
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

Sushant Sehgal
- 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