Java android.app ActivityManager fields, constructors, methods, implement or subclass

Example usage for Java android.app ActivityManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.app ActivityManager.

The text is from its open source code.

Field

intSTART_CANCELED
Result for IActivityManager.startActivity: an error where the start had to be canceled.
intSTART_RETURN_INTENT_TO_CALLER
Result for IActivityManaqer.startActivity: the caller asked that the Intent not be executed if it is the recipient, and that is indeed the case.
intSTART_FLAG_ONLY_IF_NEEDED
Flag for IActivityManaqer.startActivity: do special start mode where a new activity is launched only if it is needed.
intINTENT_SENDER_ACTIVITY_RESULT
Type for IActivityManaqer.getIntentSender: this PendingIntent is for an activity result operation.
intMOVE_TASK_WITH_HOME
Flag for #moveTaskToFront(int,int) : also move the "home" activity along with the task, so it is positioned immediately behind the task.
intMOVE_TASK_NO_USER_ACTION
Flag for #moveTaskToFront(int,int) : don't count this as a user-instigated action, so the current activity will not receive a hint that the user is leaving.

Method

ListgetAppTasks()
Get the list of tasks associated with the calling application.
ClassgetClass()
Returns the runtime class of this Object .
intgetCurrentUser()
Gets the userId of the current foreground user.
intgetDefaultAppRecentsLimitStatic()
Return the default limit on the number of recents that an app can make.
ConfigurationInfogetDeviceConfigurationInfo()
Get the device configuration attributes.
intgetLargeMemoryClass()
Return the approximate per-application memory class of the current device when an application is running with a large heap.
intgetLauncherLargeIconDensity()
Get the preferred density of icons for the launcher.
intgetLauncherLargeIconSize()
Get the preferred launcher icon size.
intgetMemoryClass()
Return the approximate per-application memory class of the current device.
voidgetMemoryInfo(MemoryInfo outInfo)
Return general information about the memory state of the system.
ListgetProcessesInErrorState()
Returns a list of any processes that are currently in an error condition.
Debug.MemoryInfo[]getProcessMemoryInfo(int[] pids)
Return information about the memory usage of one or more processes.
ListgetRecentTasks(int maxNum, int flags)

Return a list of the tasks that the user has recently launched, with the most recent being first and older ones after in order.
ListgetRunningAppProcesses()
Returns a list of application processes that are running on the device.
ListgetRunningServices(int maxNum)
Return a list of the services that are currently running.
ListgetRunningTasks(int maxNum)
Return a list of the tasks that are currently running, with the most recent being first and older ones after in order.
booleanisLowRamDevice()
Returns true if this is a low-RAM device.
booleanisRunningInTestHarness()
Returns "true" if device is running in a test harness.
booleanisUserAMonkey()
Returns "true" if the user interface is currently being messed with by a monkey.
voidkillBackgroundProcesses(String packageName)
Have the system immediately kill all background processes associated with the given package.
voidmoveTaskToFront(int taskId, @MoveTaskFlags int flags)
Equivalent to calling #moveTaskToFront(int,int,Bundle) with a null options argument.
voidrestartPackage(String packageName)