×
Namespaces

Variants
Actions

Open several natives applications wrt

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: jzferreira (05 Nov 2010)
Last edited: hamishwillee (25 Jul 2012)

Sometimes it's necessary to open a native application with WRT. In order to do this, the developer must know the hexadecimal code of the application to open. I have written a javascript code which calls some applications using the hexadecimal codes. These hexadecimals codes can be seen from here: library

Javascript Code

/*
* Source code information
* -----------------------
* Original author Javier Zambrano Ferreira
* Author email javier.ferreira@indt.org.br
* Web http://www.jzferreira.com/blog/
* Created 2010-10-28
* Filename appManager
* Revision 1.0
* Release status State:
*
* Last modified on Date: 2010-10-28
* by Author: Javier Zambrano Ferreira
*
*/
var wrt = wrt || {};
wrt.appManager = {
Browser: function(url) {
if (typeof(widget) != "undefined") {
if (typeof(url) != "string") {
url = "";
}
widget.openApplication(0x10008D39, url);
}
},
Messaging: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x100058C5, text);
}
},
Contacts: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x101f4cce, text);
}
},
Log: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x101f4cd5, text);
}
},
Profiles: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x100058F8, text);
}
},
Calendar: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x10005901, text);
}
},
Clock: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x10005903, text);
}
},
Recorder: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x100058CA, text);
}
},
Converter: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x101F4668, text);
}
},
Calculator: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x10005902, text);
}
},
Notes: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x1000599d, text);
}
},
FileManager: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x101f84eb, text);
}
},
Gallery: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x101f8599, text);
}
},
CameraOne: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(101f857a,text);
}
},
CameraTwo: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(101ffa86,text);
}
},
MusicPlayer: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x102072c3, text);
}
},
RealPlayer: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x10005a3e, text);
}
},
BlueTooth: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x10005951, text);
}
},
Infrared: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x1000594d, text);
}
},
Settings: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x100058ec, text);
}
},
Themes: function(text) {
if (typeof(widget) != "undefined") {
if (typeof(text) != "string") {
text = "";
}
widget.openApplication(0x10005a32, text);
}
}
};

How to Use

For example, to open Contact Application just use: wrt.appManager.Contacts(); It is very simple.

This page was last modified on 25 July 2012, at 09:24.
26 page views in the last 30 days.
×