I am compiling on SDK 4.03, Samsung Infuse Android 2.2, Support Library for Android 4, and using ViewPager in my app, actual swipe works fine, but when I do
Below code will pause the page for a moment(500 ms) then slide to next.
import androidx.viewpager.widget.ViewPager; new Handler().postDelayed(new Runnable() { @Override public void run() { viewPager.setCurrentItem(index, true); } }, 500);