Phone
From WebOS101
Introduction
The phone dialer can be launched from within your app with or without a populated phone number. It will however, not dial on its own. You (the user) will still have to press SEND to activate the call.
CODE
Use within buttonTap
myButtonButtonTap: function(inSender, event) {
this.controller.serviceRequest('palm://com.palm.applicationManager', {
method: 'open',
id: 'com.palm.app.phone',
parameters: {
target: "tel://4085551234"
}
});
},
and if used in your stage assistant
var scene = this.controller.activeScene();
scene.serviceRequest('palm://com.palm.applicationManager', {
method: 'open',
id: 'com.palm.app.phone',
parameters: {
target: "tel://4085551234"
}
});
and using Mojo.serviceRequest
new Mojo.Service.Request('palm://com.palm.applicationManager', {
method: 'open',
id: 'com.palm.app.phone',
parameters: {
target: "tel://4085551234"
}
});
Hope that helps a little. For more information, check HP Palm documentation on service requests.