Just started with Android, and I have a question about handling images.
I’m thinking of creating a simple quiz app with images as well for each question. Let say if it is 100 questions, I need to have 100 images, one for each. Where would you add the images, and how would you retrieve them for each question?
There a quite a few things you could do:
res/drawable. This will however, depending on the size of the images cause your APK-file to increase in size and it’s not very flexible should you want to add/remove questions at a later point.Number 1 is probably the easiest to use – but will require an update of the app whenever you add/remove questions.
Number 2/3 would be preferable in my opinion, but would also require that you have the needed webservice availible for use.