Androider Androider - 1 year ago 129
Android Question

Android Closing Activity Programatically

What is the equivalent operation within an activity to navigating away from the screen. Like when you press the back button, the activity goes out of view. How can this be called from inside an activity so that it closes itself. Thanks.

Answer Source

What about the Activity.finish() method (quoting) :

Call this when your activity is done and should be closed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download