jump To New Top Activity - Android Activity

Android examples for Activity:Activity Jump

Description

jump To New Top Activity

Demo Code


//package com.java2s;
import android.app.Activity;

import android.content.Context;
import android.content.Intent;

public class Main {
    public static void jumpToNewTopActivity(Context context,
            Class<? extends Activity> targetClass) {
        Intent datatIntent = new Intent(context, targetClass);
        datatIntent.setFlags(1234);/*  w  ww .  j ava  2  s. c o m*/
        context.startActivity(datatIntent);
    }
}

Related Tutorials