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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -