Save images together with other data in xml | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Save images together with other data in xml

I am developing a game in Android Studio. Some of the sprites I use need to have some pre-defined image points when I load them in the game. So, currently, I am saving the image points (using a PC program I wrote), and all other data accompanied with them, in xml files. When I load the images, I put them in an array. The xml file contains the index of its image in the array, and that's how it works. But I don't like it. Is there a better way to load both the image and its data together?

7th Feb 2019, 2:54 PM
Robert Sokolov
Robert Sokolov - avatar
0 Answers