N
N
Neonoviiwolf2019-03-08 14:21:54
Android
Neonoviiwolf, 2019-03-08 14:21:54

How to return to the desired fragment in the viewPager after calling the activity?

Good
In MainActivity there is a viewPager with 3 fragments. When working, I open SecondActivity, then I close it and call MainActivity again, but I need to return to the last fragment (from which SecondActivity was called), and I get to the first one, how can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tiberal, 2019-03-08
@Tiberal

https://developer.android.com/reference/android/su...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question