How to auto slide android View Pager
===

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:-

    @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);
    }

And the adapter is like below:-

    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);
    }}

However I would want to know how to make these fragments autoslide in a viewpager.