Reputation: 3253
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?
Upvotes: 0
Views: 43
Reputation: 48232
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
Upvotes: 1
Reputation: 1
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.
Upvotes: 0