Get all currently running applications an a device

To get information about all running applications on a device you should use getAppsContext() method from Application API. Also don't forget about adding "application.info" privilage to config.xml.