title: Android: limit fragments loading with a viewPager
body: <p>I have 3 fragments that are managed by an FragmentPagerAdapter, set to a viewPager.</p>
  
  <p>I want to load fragments one by one, but when  the onCreate method of FragmentActivity is executed, the 2 first fragments are executed (onCreateView method).</p>
  
  <p>I have tried to limit fragments loading with the setOffscreenPageLimit method but nothing change.</p>
  
  <pre><code>mPagerAdapter =  new MyPagerAdapter(super.getSupportFragmentManager(), fragments);
  pager = (ViewPager) super.findViewById(R.id.tabviewpager);
  pager.setOffscreenPageLimit(0);
  pager.setAdapter(this.mPagerAdapter);
  </code></pre>
  
  <p>Thank you for your help .</p>