Java tutorial
//package com.java2s; import android.app.*; public class Main { /** * Liefert ein Runnable, welches eine Activity beendet * * @param pActivity die zu beendende Activity */ public static Runnable getFinishRunable(final Activity pActivity) { return new Runnable() { @Override public void run() { pActivity.finish(); } }; } }