viewpager adapter android code example
Example: how to open view pager by position in android
sliderAdapter = new SliderAdapter(YourActivity.this);
sliderPager = (ViewPager) findViewById(R.id.sliderPager);
sliderPager.setAdapter(sliderAdapter);
sliderPager.setCurrentItem(CurrentPosition);