title: restart app when global static variables are killed android
body: <p>I have many global final constants in my application. I populate these constants from a json file during application startup. As recommended by many people, I am using the application class to keep the global variables in memory. But sometimes, after I close the application and play around with other apps and then come back to my app, it crashes. I understand this is because the system kills the process so these static variables are lost from memory. The recommended solution is to use sharedpreferences or other persistant storage methods to store these global variables. But I need a quick and easy solution to 'fix' this issue. For example, What is the easiest way to force restart the app, if the system kills the process(while the app in running in the background) and user comes back to the app later? I hope my question is clear.</p>
  
  <p>Thanks in advance</p>
  
  <p>Tom</p>