title: How to auto slide android View Pager
body: <p>Can a View Pager be made to auto slide or autopage. I have my viewpager set up to use the adapter like the below and it works fine:-</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  
  setContentView(R.layout.gridslide);
  ImagePagerAdapter mAdapter = new ImagePagerAdapter(
          getSupportFragmentManager(),4);
  ViewPager mPager = (ViewPager) findViewById(R.id.pager);
  mPager.setAdapter(mAdapter);
  }
  </code></pre>
  
  <p>And the adapter is like below:-</p>
  
  <pre><code>public static class ImagePagerAdapter extends FragmentStatePagerAdapter {
  private final int mSize;
  
  public ImagePagerAdapter(FragmentManager fm, int size) {
      super(fm);
      mSize = size;
  }
  
  @Override
  public int getCount() {
      return mSize;
  }
  @Override
  public Fragment getItem(int position) {
      Log.v(TAG,"position="+position);
      return TheFragment.newInstance(position);
  }}
  </code></pre>
  
  <p>However I would want to know how to make these fragments autoslide in a viewpager.</p>