title: Keep activity in paused state - Android
body: <p>I have an application with 3 tabs with one activity per tab. When I am switching between first two activities, the activity, which is going to background passes the <code>onPause()</code> state, while the new one becomes active and <code>onResume()</code> is called. That’s good, because both activities have a complex UI and rendering them takes 2-3 seconds, but when they are kept in <strong>paused</strong> state, they are resumed quickly.</p>
  
  <p>But when I click on the 3rd tab, then the application behavior is different, the activity, which is going to background, is completely destroyed (it passes <code>onPause()</code>, <code>onStop()</code> and <code>onDestroy()</code>). </p>
  
  <p>Any idea why there is difference in behavior? Is there a way to force the activity to remain in a paused state when user switches to another activity within the application?</p>
  
  <p>Thanks
  STeN</p>