Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Listing installed applications in Symbian Web Runtime

From Wiki
Jump to: navigation, search

This code snippet demonstrates how to use the AppManager Service API to discover the applications that are installed on the device.

Article Metadata
Code ExampleTested with
Devices(s): Nokia 5800 XpressMusic
Platform(s): S60 5th Edition and later
Keywords: device.getServiceObject(), Service.AppManager
Created: tapla (23 Oct 2008)
Last edited: hamishwillee (04 Oct 2012)


Source: widget.xhtml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="script.js" />
<title>WRT Application</title>
<div id="bodyContent" class="bodyContent">

Source: script.js

var serviceObj = null;
window.onload = init;
// Initializes the widget
function init() {
// Obtain the AppManager service object
try {
serviceObj = device.getServiceObject("Service.AppManager",
} catch (ex) {
alert("Service object cannot be found.");
// We are interested in applications, so let's define the criteria
// respectively
var criteria = new Object();
criteria.Type = "Application";
// Obtain the list of installed applications
var result = serviceObj.IAppManager.GetList(criteria);
var appList = createAppList(result.ReturnValue);
// Creates the list of installed applications
function createAppList(iterator) {
var list = new Array();
try {
var item;
while ((item = iterator.getNext()) != undefined) {
var txt = "";
txt += item.Caption + " (";
txt += item.Uid + ")";
} catch (ex) {
return list;
// Displays a list on the screen
function displayList(list) {
var listElement = document.createElement("ol");
for (var i = 0; i < list.length; i++) {
var listItemElement = document.createElement("li");
var textElement = document.createTextNode(list[i]);
var bodyContentElement = document.getElementById("bodyContent");


The example displays an alphabetically ordered list of installed applications and their UIDs on an HTML page.

Supplementary material

This page was last modified on 4 October 2012, at 05:27.
44 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.