title: My app resets data when it is minimized
body: <p>i made an android game once i minimize it,
  it resets data and refresh the timer like you started the game from the scratch 
  how can i make it Don't do this</p>
  
  <p>i think the problem is on the OnStart function</p>
  
  <pre><code>  protected void onStart() {
      super.onStart();
  
      // Reset score
      Configs.score = 0;
      scoreTxt.setText(String.valueOf(Configs.score));
  
  
      // Set progressBar and start the gameTimer
      pb = (ProgressBar)findViewById(R.id.gbProgressBar);
      progress = 0;
      pb.setProgress((int) progress);
      startGameTimer();
  
  
      // Get a random circle for letters
      Random r = new Random();
      randomCircle = r.nextInt(Configs.circlesArray.length);
  
  
      // Reset taps count
      tapsCount = -1;
  
  
      // Get a random word from words string-array
      getRandomWord();
  }
  </code></pre>