java - Is possible to use finish() in to return in previous activities like C>B>A? -
technically have mainactivity
"a" then i'll go next activity activity "b" there other activity activity "c"
but when use finish, activity b , c returns each other instead backing main activity
when route activity b c, , pressing c b , a. don't need use finish() anywhere. because android maintain stack button. automatically push activities , pop activities when back.
refer : https://developer.android.com/guide/components/tasks-and-back-stack.html
Comments
Post a Comment