What is Equivelant Unwind segue in Android Development

I’m used to developing iOS, and in Swift, segues are deployed to go to a specific view controller from the current view controller.

(If any) What is equivelant Unwind segue in Android Development? What should I do to return to a certain activity?

+4
source share
1 answer

This is handled in onBackPressed()your activity, which you can redefine if you want to do something special. If you want finer control or more detailed information, you can read the FragmentManager , which manages still frames. popBackStack()and popBackStackImmediate()may be what you are looking for. As a rule, you do not need to micro-level too much. By default, it will return you to the previous action without any effort on your part.

, iOS-dev, Android, back ( ) up ( ). "" , ( ), . "" , . , Google , .

+1

All Articles