I write simple project in android. I have ~10 activities, and the user flipping them. In main activity I must parse very big XML file and load this information into some array. But if the user turns the main activity off and goes back to it, my main activity parses big XML file again. Can I parse it once and save in the memory while the user turns the activities?
Share
Make a Singleton that parse the XML in the constructor, and use get to get the data.