I read this Article on StackOverflow. According to this, static variables will be erased, if
- the class is unloaded
- the JVM shuts down
- the process dies
But how to destroy / to kill my application (application process) and so to erase all static variables programmatically from my application?!
Thank you,
Mur
UPD
These static variables will be filled by reading some data from server. Here is a test workflow:
- I start application -> static variables will be filled
- I go to home activity pressing back button -> finish() will be called
- I turn off internet connection (I'm sure there is no connection)
- Then I start application againg
- Static variables are still filled
Some Ideas?
Is there possibility to close all activities of an aplication? Will be application 'closed' in that case?
Ps. Yes, I know, it's not the best way to use static variables, but i'm not the the author of that application, I'm just fixing bugs and put some new features to it.