Application class variables gets uninitialised in android
问题 I have created an android app in which i'm using an application class to store and access the global variables. But i came across a strange behavior that all the variables in my application class gets uninitialized in the following scenarios, if my app is idle for sometime(say 10 minutes or so). if my app goes to background (if a browser gets opened above the app). I searched a lot in SO and web and doesn't found any suitable answer. AFAIK once application class is initialized it will be