singleton class that survives Process termination
问题 I've read several post regarding singleton class destruction or singleton pattern is bad in android like this and this But I am not able to understand how to declare a singleton class properly or use sharedpreference for persistance can anyone provide any example on how to maintain global objects across application or how to achieve this in proper way any help is appreciated. 回答1: I think this link you mentioned is quite good.As my personal experience the best way to maintain global objects