Version: 10
restore

Contents

Method

GetRunningApps

ModuleOperatingSystem
LibraryCore
Action

Get details of running applications.

Parameters(None)
Return values

For each current application:

    • ProcessId (string): The PID of this process, 0 if none found.
    • UID (string): The User ID of this process.
    • ProcessName (string):  The process name.
    • ImportanceLevel (string): The relative importance level that the system places on this process.
    • ImportanceReason (string):  The reason for this importance level.
Example
 OperatingSystem.GetRunningApps();
Platforms
  • Android
Notes

Supported only on versions of Android orior to version 6 (Marshmallow) where applications like Tachyon had access to the full list of all processes running on the device.

For Android version 6 onwards, an application only has access to the list of processes that it has created either directly or indirectly, because Google regarded this as a potential security issue and have removed the full list capability.