title: Loading Data without pausing the activity in fragments
body: <p>i have an app that extends view pager. Every single tab of the view pager get filled from online database, however i have a tiny problem in loading :-)</p>
  
  <p>I use Asynctask when the activity first start but that really spoil the user experience as i want it to be more smooth and interactive.
  So after looking to the new updated zedge app, i want to do the exact same thing to my fragments.</p>
  
  <p>This image explains everything : </p>
  
  <p><a href="http://i.stack.imgur.com/ryCVc.png" rel="nofollow">http://i.stack.imgur.com/ryCVc.png</a></p>
  
  <p>Their loading is smooth and i want mine to be too, so how can i do it? </p>
  
  <p><strong>Basically</strong>: i want the progress dialog to be inside the fragment and be gone when the loading is finished. I know we know i can do it by modifying visibility, but how can i load the data from my online database to the offline database while the user can still swipe between tabs.</p>