How to Close an Activity

public void finish () was added in API level 1
Call this when your activity is done and should be closed. The ActivityResult is propagated back to whoever launched you via onActivityResult().

In this example, let's say you would like to close the activity when a button is pushed.
1. Add an OnClick Action to a Button

2. In the onClickmyButton method, add the below line. This will close the currently displayed activity when the user presses the button.

finish();
3. Compile and run!

Resources:
http://developer.android.com/reference/android/app/Activity.html#finish()
http://stackoverflow.com/questions/15393899/how-to-close-activity-and-go-back-to-previous-activity-in-android