Android Guides | Samples

Android.App.ActivityManager Class

Interact with the overall activities running in the system.

See Also: ActivityManager


[Android.Runtime.Register("android/app/ActivityManager", DoNotGenerateAcw=true)]
public class ActivityManager : Object


Interact with the overall activities running in the system.

[Android Documentation]


Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 1

The members of Android.App.ActivityManager are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

MetaHomeAlternateString. <meta-data> name for a 'home' Activity that declares a package that is to be uninstalled in lieu of the declaring one.

Public Properties

AppTasksIList<ActivityManager.AppTask>. Get the list of tasks associated with the calling application.
AppTaskThumbnailSizeSize. Return the current design dimensions for NoType:android/app/ActivityManager$AppTask;Href=../../../reference/android/app/ActivityManager.AppTask.html thumbnails, for use with ActivityManager.AddAppTask(Activity,Intent,Intent,Intent).
DeviceConfigurationInfoConfigurationInfo. Get the device configuration attributes.
IsInLockTaskModeBoolean. Return whether currently in lock task mode.
IsLowRamDeviceBoolean. Returns true if this is a low-RAM device.
IsRunningInTestHarnessBoolean. Returns "true" if device is running in a test harness.
IsUserAMonkeyBoolean. Returns "true" if the user interface is currently being messed with by a monkey.
LargeMemoryClassInt32. Return the approximate per-application memory class of the current device when an application is running with a large heap.
LauncherLargeIconDensityInt32. Get the preferred density of icons for the launcher.
LauncherLargeIconSizeInt32. Get the preferred launcher icon size.
MemoryClassInt32. Return the approximate per-application memory class of the current device.
ProcessesInErrorStateIList<ActivityManager.ProcessErrorStateInfo>. Returns a list of any processes that are currently in an error condition.
RunningAppProcessesIList<ActivityManager.RunningAppProcessInfo>. Returns a list of application processes that are running on the device.

Protected Properties

ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddAppTask(Activity, Intent, ActivityManager+TaskDescription, Bitmap) : Int32
Add a new NoType:android/app/ActivityManager$AppTask;Href=../../../reference/android/app/ActivityManager.AppTask.html for the calling application.
ClearApplicationUserData() : Boolean
Permits an application to erase its own data from disk.
DumpPackageState(FileDescriptor, String)
Perform a system dump of various state associated with the given application package name.
DumpPackageStateAsync(FileDescriptor, String) : Task
FromContext(Context) : ActivityManager
Return general information about the memory state of the system.
Return global memory state information for the calling process.
GetProcessMemoryInfo(Int32[]) : Debug+MemoryInfo[]
Return information about the memory usage of one or more processes.
GetRecentTasks(Int32, RecentTaskFlags) : IList<ActivityManager.RecentTaskInfo>
GetRunningServiceControlPanel(ComponentName) : PendingIntent
Returns a PendingIntent you can start to show a control panel for the given running service.
GetRunningServices(Int32) : IList<ActivityManager.RunningServiceInfo>
Return a list of the services that are currently running.
GetRunningTasks(Int32) : IList<ActivityManager.RunningTaskInfo>
Return a list of the tasks that are currently running, with the most recent being first and older ones after in order.
Have the system immediately kill all background processes associated with the given package.
MoveTaskToFront(Int32, MoveTaskFlags)
Equivalent to calling ActivityManager.MoveTaskToFront(Int32,MoveTaskFlags,MoveTaskFlags) with a null options argument.
MoveTaskToFront(Int32, Int32)
MoveTaskToFront(Int32, MoveTaskFlags, Bundle)
Ask that the task associated with a given task ID be moved to the front of the stack, so it is now visible to the user.