the right place to deserialize on Android
===

I'm developing an Android app which stores a TreeSet object using serialization in a file. I need to serialize the object on close of my app and deserialize on launch because I need an access during a complete runtime. Unfortunately it's quite unpredictable on which activity the user will start/end so it's unclrear to me where are the right places to put this serialization and deserialization calls so that the object is available during the complete runtime.

thanks in advance for any ideas