How to Retrieve a List of Installed Applications
PUBLISHED
Using the tizen.application.getAppsInfo() method, you can get the list of installed applications on the device. The method takes two arguments, the success callback (called when the operation is successful) and the error callback (called otherwise), and an array of the installed applications will be returned as an argument of the success callback.
Attribute | Description |
---|---|
id | Identifier of the application |
name | Name of the application |
iconPath | Path of the application's icon |
version | Version of the application |
show | Informs if the application should be shown or not |
function onError(err) { console.log('Error occurred : ' + err.message); } function onsuccess(applications) { var appInfo; for (var i = 0; i < applications.length; i++) { appInfo = applications[i]; console.log('Application ID: ' + appInfo.id); console.log('Icon Path: ' + appInfo.iconPath); console.log('Name: ' + appInfo.name); console.log('Version: ' + appInfo.version); console.log('Show: ' + appInfo.show); } } tizen.application.getAppsInfo(onsuccess, onError);