0% found this document useful (0 votes)
19 views

List Activitymanager - Apptask: Public Getapptasks

The document describes several ActivityManager classes and methods for retrieving information about tasks, processes, and apps running on a device. It includes the RecentTaskInfo, RunningAppProcessInfo, and RunningTaskInfo classes which provide data on recent tasks, running processes, and currently running tasks. It also describes the getAppTasks() and getRunningAppProcesses() methods, where getAppTasks() returns a list of tasks associated with the calling app, and getRunningAppProcesses() returns a list of currently running application processes.

Uploaded by

PhongNguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

List Activitymanager - Apptask: Public Getapptasks

The document describes several ActivityManager classes and methods for retrieving information about tasks, processes, and apps running on a device. It includes the RecentTaskInfo, RunningAppProcessInfo, and RunningTaskInfo classes which provide data on recent tasks, running processes, and currently running tasks. It also describes the getAppTasks() and getRunningAppProcesses() methods, where getAppTasks() returns a list of tasks associated with the calling app, and getRunningAppProcesses() returns a list of currently running application processes.

Uploaded by

PhongNguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

class

ActivityManager.RecentTaskInfo

Information you can retrieve about tasks that the user has most recently

class

ActivityManager.RunningAppProcessInfo

Information you can retrieve about a running process.

class

ActivityManager.RunningTaskInfo

Information you can retrieve about a particular task that is currently "run

List<ActivityManager.RunningAppProcessInfo>

getRunningAppProcesses()
Returns a list of application processes that are running on the device.

public List<ActivityManager.AppTask> getAppTasks ()


Added in API level 21

Get the list of tasks associated with the calling application.


Returns

The list of tasks associated with the application making this call.

Throws

SecurityException

public List<ActivityManager.RunningAppProcessInfo> getRunningAppProc


esses ()
Added in API level 3

Returns a list of application processes that are running on the device.


Note: this method is only intended for debugging or building a user-facing process
management UI.
Returns

Returns a list of RunningAppProcessInfo records, or null if there are no running processes (it
will not return an empty list). This list ordering is not specified.

You might also like