Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; public class Main { public static final void gotoHome(Context context) { Intent intent = new Intent(Intent.ACTION_MAIN); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addCategory(Intent.CATEGORY_HOME); context.startActivity(intent); } }