ActivityManager


public class ActivityManager
extends Object

java.lang.Object
   ↳ android.app.ActivityManager


This class gives information about, and interacts with, activities, services, and the containing process.

A number of the methods in this class are for debugging or informational purposes and they should not be used to affect any runtime behavior of your app. These methods are called out as such in the method level documentation.

Most application developers should not have the need to use this class, most of whose methods are for specialized use cases. However, a few methods are more broadly applicable. For instance, isLowRamDevice() enables your app to detect whether it is running on a low-memory device, and behave accordingly. clearApplicationUserData() is for apps with reset-data functionality.

In some special use cases, where an app interacts with its Task stack, the app may use the ActivityManager.AppTask and ActivityManager.RecentTaskInfo inner classes. However, in general, the methods in this class should be used for testing and debugging purposes only.

Summary

Nested classes

class ActivityManager.AppTask

The AppTask allows you to manage your own application's tasks. 

class ActivityManager.MemoryInfo

Information you can retrieve about the available memory through ActivityManager.getMemoryInfo

class ActivityManager.ProcessErrorStateInfo

Information you can retrieve about any processes that are in an error condition. 

class ActivityManager.RecentTaskInfo

Information you can retrieve about tasks that the user has most recently started or visited. 

class ActivityManager.RunningAppProcessInfo

Information you can retrieve about a running process. 

class ActivityManager.RunningServiceInfo

Information you can retrieve about a particular Service that is currently running in the system. 

class ActivityManager.RunningTaskInfo

Information you can retrieve about a particular task that is currently "running" in the system. 

class ActivityManager.TaskDescription

Information you can set and retrieve about the current activit