- 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.
- flags
- Information about what to return. May be any combination of ActivityManager.RECENT_WITH_EXCLUDED and ActivityManager.RECENT_IGNORE_UNAVAILABLE.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.SecurityException
Return a list of the tasks that the user has recently launched, with the most recent being first and older ones after in order.
Note: this method is only intended for debugging and presenting task management user interfaces. This should never be used for core logic in an application, such as deciding between different behaviors based on the information found here. Such uses are not supported, and will likely break in the future. For example, if multiple applications can be actively running at the same time, assumptions made about the meaning of the data here for purposes of control flow will be incorrect.