title: android load data asynchronously in view pager
body: <p>I need a solution for view pager implementation.
  Firstly I am loading huge data from database in single page,so sometimes during swipe it slows down swipe frequency(you need to multiple time swipe on page) as in background it is doing fetching task.
  I am not using async task for returning view.
  Is there any way to lazy load pages just allow user to go on other page on swipe but data is lazy loaded.</p>
  
  <p>My code sample is as below;</p>
  
  <pre><code> public Object instantiateItem(View container, int position) {
  
  View v;
  
  v = View.inflate(context,R.layout.swipearea, null);
  
  listView = (ListView)v.findViewById(R.id.MyListView);
  largeDataCall();
  ((ViewPager)container).addView(v);
  return v;
  }
  </code></pre>
  
  <p>I am calling this in on create method.</p>
  
  <pre><code>pager=(ViewPager) findViewById(R.id.pagerAdapter);
  pager.setAdapter(new SimplePager(MyPager.this));
  pager.setCurrentItem(364);
  </code></pre>
  
  <p>Is there any solution?</p>