I'm using a ViewPager, but I tried trying to select it and I could not do it correctly. By default I select the first tab but I need the tab selected by default to be the second one.
Also, when I enter another activity and then press back, it returns to the default tab. Is there a way to save the selected tab when I go to the other activity and when I return I can select the tab I previously saved?