ActivityManager

Class of android.app · ActivityManager.java · Android's reference

public class ActivityManager

The process's state, as the activity manager reports it: one foreground app with memory to spare.

Nested types

Fields

public static final int RECENT_WITH_EXCLUDED = 1 source

Methods

public List<RunningAppProcessInfo> getRunningAppProcesses() source
public static void getMyMemoryState(RunningAppProcessInfo outState) source
public void getMemoryInfo(MemoryInfo outInfo) source
public int getMemoryClass() source
public int getLargeMemoryClass() source
public boolean isLowRamDevice() source
public static boolean isRunningInUserTestHarness() source
public static boolean isUserAMonkey() source
public boolean isBackgroundRestricted() source
public boolean clearApplicationUserData() source
public List<ApplicationExitInfo> getHistoricalProcessExitReasons(String packageName, int pid, int maxNum) source
public List<Object> getAppTasks() source
public List<ProcessErrorStateInfo> getProcessesInErrorState() source

Null: no process of the app is in an error state.

public List<RunningTaskInfo> getRunningTasks(int maxNum) deprecated source

The app's one task, from its launcher activity.

public boolean isActivityStartAllowedOnDisplay(android.content.Context context, int displayId, android.content.Intent intent) source

The one display is the default one.

public void moveTaskToFront(int taskId, int flags) empty body source
public void moveTaskToFront(int taskId, int flags, android.os.Bundle options) empty body source
public void setProcessStateSummary(byte[] state) source
public int getLauncherLargeIconDensity() source
public int getLauncherLargeIconSize() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.