android.app.ActivityManager
Interact with the overall activities running in the system.
Nested Classes
Summary
Constants
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Constants
public
static
final
int
RECENT_WITH_EXCLUDED
Public Methods
public
List
getRecentTasks(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.
Parameters
| maxNum
| The maximum number of entries to return in the list. The
actual number returned may be smaller, depending on how many tasks the
user has started and the maximum number the system can remember. |
Returns
- Returns a list of RecentTaskInfo records describing each of
the recent tasks.
public
List
getRunningTasks(int maxNum)
Return a list of the tasks that are currently running, with
the most recent being first and older ones after in order. Note that
"running" does not mean any of the task's code is currently loaded or
activity -- the task may have been frozen by the system, so that it
can be restarted in its previous state when next brought to the
foreground.
Parameters
| maxNum
| The maximum number of entries to return in the list. The
actual number returned may be smaller, depending on how many tasks the
user has started. |
Returns
- Returns a list of RunningTaskInfo records describing each of
the running tasks.