I'm facing an issue regarding a static variable that i'm am using all over my project(it contains some fields from a file). The variable loses her value in some cases, not always. I have read about the life cycle of a static variable , that she loses the value in 3 cases :
1) Class is unloaded.
2) JVM shuts down.
3) The process dies.
So I have a question : Isn't enough to rewrite activities onResume and parse the file again and feed the static variable again if it is null?