Process Monitor Plug-in

//Process Monitor Plug-in

Plug-in Overview

This Plugin delivers a list of all running processes, as well as a list of all installed applications.

  • Plug-in ID: org.ambientdynamix.contextplugins.processmonitoring

Supported Context Types

Context Types Privacy Risk Level Data Types Description
<PLUGID>.installedapplications MEDIUM IInstalledApplicationInfo A list of the process names of all installed applications.
<PLUGID>.runningprocesseslist MEDIUM IRunningProcessInfoList A list of IRunningProcessInfo for all running processes.
Descriptions of the data types above can be found in the JavaDocs at the end of this page.

Web App Usage

Integrate Dynamix into your Web app, as described here.

Add context support as follows:

You can request the currently installed applications like this:

You can request the currently running processes like this:

See the JavaDocs below for details on the available context event data. Context events can be handled like this in your Web app’s dynamix_listener.js file:

Native App Usage

Integrate Dynamix into your native app, as described here.

Add context support as follows:

You can request the currently installed applications like this:

You can request the currently running processes like this:

[DataType JAR Download data-type-download=””]

Context events can be handled like this:

JavaDocs

Web apps

Web apps will receive context events with additional JavaScript properties, which are automatically derived from the IBatteryLevelInfo interface described in the JavaDocs below if the methods adhere to JavaBean getter conventions. The available JavaScript properties can be derived as follows:

  • Remove each method’s ‘get’ prefix.
  • Remove each method’s trailing parentheses ‘()’.
  • Convert the result to camel case.
  • Example: event.getSomeProperty() would be available in JavaScript as event.someProperty;

Native apps

Native apps can use the interface below directly, if the plug-in’s data-type JAR is included on the app’s build path and exported into the app’s APK.

JavaDocs

Code

https://bitbucket.org/dynamixdevelopers/applicationmonitorplugin

By | 2017-09-29T23:38:59+00:00 May 8th, 2014|Plugins|Comments Off on Process Monitor Plug-in