ActivityManager
ActivityManager
Methods:
- GetLaunchIntentForLauncher As IntentWrapper
Returns an Intent that will launch the device's default launcher/home screen application.
Starting this Intent will force any running application into the background.
- GetLaunchIntentForPackage (PackageName As String) As IntentWrapper
Returns an Intent that will start/restart the application identified by PackageName.
The Intent will ensure that the application is started afresh with no 'back' history.
- GetRunningTasks As RunningTaskInfo[]
Returns an Array of RunningTaskInfo objects.
Each RunningTaskInfo object represents a task that the user has recently launched.
- KillBackgroundProcesses (PackageName As String)
Have the system immediately kill all background processes associated with the given package name.
Permissions:
- android.permission.GET_TASKS
- android.permission.KILL_BACKGROUND_PROCESSES
RunningTaskInfo
Methods:
- GetApplicationName As String
Returns this running task's application name.
Will return "APPLICATION_NAME_NOT_FOUND" if a problem occurs trying to find the application name.
- GetPackageName As String
Returns this running task's package name.
- IsInitialized As Boolean