Android Guides | Samples

Android.App.ActivityManager Class

Interact with the overall activities running in the system.

See Also: ActivityManager

Syntax

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

Remarks

Interact with the overall activities running in the system.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
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

const
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

[read-only]
AppTasksIList<ActivityManager.AppTask>. Get the list of tasks associated with the calling application.
[read-only]
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).
[read-only]
DeviceConfigurationInfoConfigurationInfo. Get the device configuration attributes.
[read-only]
IsInLockTaskModeBoolean. Return whether currently in lock task mode.
[read-only]
IsLowRamDeviceBoolean. Returns true if this is a low-RAM device.
[read-only]
static
IsRunningInTestHarnessBoolean. Returns "true" if device is running in a test harness.
[read-only]
static
IsUserAMonkeyBoolean. Returns "true" if the user interface is currently being messed with by a monkey.
[read-only]
LargeMemoryClassInt32. Return the approximate per-application memory class of the current device when an application is running with a large heap.
[read-only]
LauncherLargeIconDensityInt32. Get the preferred density of icons for the launcher.
[read-only]
LauncherLargeIconSizeInt32. Get the preferred launcher icon size.
[read-only]
MemoryClassInt32. Return the approximate per-application memory class of the current device.
[read-only]
ProcessesInErrorStateIList<ActivityManager.ProcessErrorStateInfo>. Returns a list of any processes that are currently in an error condition.
[read-only]
RunningAppProcessesIList<ActivityManager.RunningAppProcessInfo>. Returns a list of application processes that are running on the device.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
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
static
FromContext(Context) : ActivityManager
GetMemoryInfo(ActivityManager+MemoryInfo)
Return general information about the memory state of the system.
static
GetMyMemoryState(ActivityManager+RunningAppProcessInfo)
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.
KillBackgroundProcesses(String)
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.
RestartPackage(String)