Example usage for android.app ActivityManager MOVE_TASK_WITH_HOME

List of usage examples for android.app ActivityManager MOVE_TASK_WITH_HOME

Introduction

In this page you can find the example usage for android.app ActivityManager MOVE_TASK_WITH_HOME.

Prototype

int MOVE_TASK_WITH_HOME

To view the source code for android.app ActivityManager MOVE_TASK_WITH_HOME.

Click Source Link

Document

Flag for #moveTaskToFront(int,int) : also move the "home" activity along with the task, so it is positioned immediately behind the task.

Usage

From source file:Main.java

public static void moveTaskToFront(Context context, int taskId) {
    ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
    am.moveTaskToFront(taskId, ActivityManager.MOVE_TASK_WITH_HOME);
}