I\'m using the SlidingTabLayout example provided by Google. I\'m trying to programmatically switch back to the first tab inside a dialogView that is inside a fragment.
You can use:
viewPager.setCurrentItem(itemIndex);
viewPager being your view pager for the tabs that you specified in the layout as
android.support.v4.view.ViewPager