I have 110 images, all labeled 1, 2, 3, etc. I'd like to be able to set it up so that I can generate a random number and then display that image on the screen. The display part is fine, but I'm not sure about the array.
So far, all I've seen are arrays that require manual setup - typing in each name in XML. For 10 or 15 images, that's not bad. For 110, or thousands (in the future, hopefully), it's pretty inefficient. Is there a way to display an image based on its title, not resource ID? Ideally, I'd like to be able to title my images "ENG_1" and "SPA_1" to show different images for different languages, so it'd be nice to have it based on a String instead of an int, for searchability (if that's a word) and ease of access.
So, how would I start that?