I have a tabbed activity on Android Studio.I want to open my second tab on startup.How can i do this?
If you are using viewpager then you can simply do
mViewPager.setCurrentItem(n);
where, n = tab
no which you want to open as default.
Since it counts from index 0
so in your case n=1
, so it will be
mViewPager.setCurrentItem(n);