android - actionbar's upNavigation from activity to fragment -


i have jump activity fragment2 in activity b(in activityb, use viewpager,which contains 4 fragment).what want when use upnavigation of actionbar ,i jump exact second fragment.

can me?(i have searched related questions ,but seems navigate in/between fragments,which not want.)

use , detect onclick

viewpager.setcurrentitem(pagenumber); 

above line navigate page


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -