Android examples for Activity:Activity Jump
jump To Home Activity
//package com.java2s; import android.content.Context; import android.content.Intent; public class Main { public static void jumpToHomeActivity(Context context) { Intent mHomeIntent = new Intent("android.intent.action.MAIN"); mHomeIntent.addCategory("android.intent.category.HOME"); mHomeIntent.addFlags(1234);//w w w .j av a 2 s . c o m context.startActivity(mHomeIntent); } }