title: Android : Static variable null on low memory
body: <p>I have an application which has some static variables.
  These variables are stored in an independent Class named DataContext.
  These variables are initialized from raw files at the application start (a method named DataContext.initConstant() is called in the onCreate() of MyApplication which extends Application).</p>
  <p>(EDIT : the initConstant method use an AsyncTask to load this data from files).</p>
  <p>When my application comes to the background for a certain time or when my application used to much memory, these static variables become null.</p>
  <ol>
  <li><p>How can it be prevented?</p>
  </li>
  <li><p>If not what should I do with my static variables?</p>
  <p>I have other data which are stored in static variables to be used across different activities, but I clear them or pass them to null in the <code>onLowMemory()</code> of MyApplication.</p>
  </li>
  <li><p>What is the best way to keep some data accessible between activities if these data are too big to be serialized in an Intent, a database can't be used (for whatever reason), and can't be stored in files through serialization either?</p>
  </li>
  </ol>