Java tutorial
//package com.java2s; import android.app.Activity; public class Main { private static void activityFinish(Activity activity) { activity.finish(); } }