How do I go back to previous activity on android?

Lò Ngọc

New member
How do I go back to previous activity on android?
Answer
Android activities are stored in the activity stack. Going back to a previous activity could mean two things. You opened the new activity from another activity with startActivityForResult. In that case you can just call the
finishActivity() function
from your code and it’ll take you back to the previous activity.
 

Tìm kiếm

Back
Top