0
0
0xE02013-07-01 17:29:20
Android
0xE0, 2013-07-01 17:29:20

Working with an image catalog?

There is a large catalog of images (about 5 thousand pieces).
First question:
How to work with them in an Android application? Throw all of them in the res folder and access them from there? Or put in some directory on the disk? Or to a database?
Second question:
If they are in the res folder under the names:
pic00001
pic00002
...
pic05000
how to access them programmatically?
I can write for example:
ivCatalog.setImageResource(R.drawable.pic02700);
But how do I change the picture to the right one?
PS I'm not a real programmer, I'm trying to develop so that my brain does not stagnate.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AgentSIB, 2013-07-01
@AgentSIB

5000 images in an apk is cruel. If you need them all at once - pack them into an archive and offer to download the first time you start the apk. Then unpack and use. In general, it all depends on the content. It might be better to download online.

0
0xE0, 2013-07-01
@0xE0

Understood thanks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question