title: Android studio always reloads after losing focus?
body: <p>I have an Android app. When I open the app, it loads and I am able to use it no problems. If I then minimize the app, and come back, the whole app restarts and reloads everything.</p>
  
  <ol>
  <li>Is there some kind of list of things I can check for to try and figure out why this is happening?</li>
  <li>Is there perhaps some "dont reload app after losing focus" setting I am not aware of? </li>
  <li>Any other suggestions on how to figure out why my Android app would be doing this?</li>
  </ol>
  
  <p><strong>THEORY 1</strong></p>
  
  <p>I have a base class called MyApplication. This class is where I store all the info for the app. So the user info, the items to display etc. I expose this using static functions:</p>
  
  <pre><code>public static List&lt;UserNotification&gt; getUserNotifications(Context context) {
      return userNotifications;
  }
  </code></pre>
  
  <p>My theory is that somehow, when losing focus, this base class is destroyed. Perhaps through garbage collecting? I'm not sure. Which also builds up to another question...</p>
  
  <ol start="4">
  <li>If storing info like this on my base class is wrong, what is the correct way to deal with this so as to avoid the user having to reload everything each time he opens the app?</li>
  </ol>