title: What happens to AsyncTasks after onPause?
body: <p>I have an AsyncTask that is executed before I move on to the next Activity. Inside this AsyncTask, I have a MediaPlayer. </p>
  
  <pre><code> protected void onPause() {
             stopProgress();
             Log.i(TAG, "onPAUSE");
             try  {
             } finally {
             // If we allocated a player, then cleanup after it
             if (player != null) {
                 player.reset();
                 player.release();
                 player = null;
                 Log.d(TAG,"end of player cleanup");
                              }
              }
              super.onPause();
           }
  </code></pre>
  
  <p>Use Scenario:</p>
  
  <ol>
  <li>Click play button in Activity 1</li>
  <li>Move on to Activity 2 before player even loads (log information from onPause is definitely called).</li>
  <li>While in Activity 2, player from Activity 1 plays when finished loading.</li>
  </ol>