jump To Home Activity - Android Activity

Android examples for Activity:Activity Jump

Description

jump To Home Activity

Demo Code


//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);
    }
}

Related Tutorials