Search code examples
androidandroid-activity

Which function I have to call on a Cancel button in a user interface (activity)?


I have various activitys on my app. I have a configuration Activity, and I want to put a cancel button, that, when user press this button, the configuration window get's closed and turn back into the previous activity.

I found something about calling cancel or dismiss functions, but I can't call them cause this is not a dialog, it's an activity.


Solution

  • You can finish an activity.