Hello!
I've just nearly finished a mobile app for my company, and there are quite a number of Activities in it.
I've also been advised (here, in fact!) to check out the possibility of using Fragments for the various screens.
Fragments in this case sounds like the way it should have been developed, but I'm still learning this whole Android programming thing.
So, the main Activity fires off after the login Activity and retrieves the user's XML data file, which will usually be generated immediately after login, unless the user is returning that same day, in which case the same XML file would be loaded and reused. (Our company regenerates data only once a day.) This XML file is about 32KB in length, so should not be a hassle to the XMLParser class.
Does it make sense that this Activity should be used to read, parse, and persistently store the XML data for the Fragments to read and display as necessary?
If so, I have read that layout inflaters and declarative XML are the best way to write the display screens for each Fragment. Is this true?
Not looking for code examples here. I'd just like to know if this is the right approach.
Thanks, dudes!