How to keep data persistent throughout the application
问题 I'm designing an app which involves parsing a large XML and keeping the serialised data accessible throughout the application. I intend to have a data object which will keep the data stored and each component (though not every one) can access the data. I would like this data to be non-persistent, whereby the application parses the XML and keeps the data in memory. Note this data will be large (XML file is >2MB). Also, I would like the data to be there when a user switches to another app. I