title: Switching Tab and reboot activity
body: <p>I want to restart the activity when switch every time, 
  One activity connects the network and uploads data. </p>
  
  <p>If it displays data successfully, there is no need to restart the activity on tab change. </p>
  
  <p>If it's not able to displays data unsuccessfully, I hope restart activity when switches tab every time and connect network to upload again.</p>
  
  <p>How to achieve this?</p>