title: Variable values reset after minimizing app
body: <p>I'm making this android app that acts as a calculator for a game. The calculator will tell you the cost of everything you selected and also show you a total price.</p>
  
  <p>For example, if you select AR on the spinner, it will say it costs 1200. If you select WS, it shows the cost as 2400. </p>
  
  <p>However, if this app is minimized for a great deal of team (30 minutes or more), the price values get reset to default (0). The spinner is still be on AR, but the price says 0. I need to click on the spinner again before it recalculates the value.</p>
  
  <p>Is there a way for me to refresh it or prevent the loss of values?</p>