Android APIs
public static class

ActivityManager.AppTask

extends Object
java.lang.Object
   ↳ android.app.ActivityManager.AppTask

Class Overview

The AppTask allows you to manage your own application's tasks. See getAppTasks()

Summary

Public Methods
void finishAndRemoveTask()
Finishes all activities in this task and removes it from the recent tasks list.
ActivityManager.RecentTaskInfo getTaskInfo()
Get the RecentTaskInfo associated with this task.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void finishAndRemoveTask ()

Finishes all activities in this task and removes it from the recent tasks list.

public ActivityManager.RecentTaskInfo getTaskInfo ()

Get the RecentTaskInfo associated with this task.

Returns
  • The RecentTaskInfo for this task, or null if the task no longer exists.