user2212461
user2212461

Reputation: 3253

How to provide large set of images in Android?

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

Answers (2)

Alexander
Alexander

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

Sushant Sehgal
Sushant Sehgal

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

Related Questions