Languages

Menu
Sites
Language
How to invoke phone app to call a number

Hi guys,

Does anyone know how to invoke phone to make a voice call with a specific number?

I tried the following snipper but getting an error that "the given package is not found"

 

 

var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/dial","tel", "123");
tizen.application.launchAppControl(appControl, null,
function() {console.log("OK"); },
function(e) {
console.log("error: " + e.message); });

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

7 Replies
Raghavendra Reddy Shiva
You can launch a dialer with a specified number as below, function launchDialer() { console.log("Preparing to launch the dialer.."); var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/dial","tel:9988776655", null); tizen.application.launchAppControl(appControl,null, function(){console.log("launch appControl succeeded");}, function(e){console.log("launch appControl failed. Reason: " + e.name);}, null); } In the appControl , the URI should be mentioned in the format as, "tel:your-phone-number" and there is no mime, so mention it as null.
Gökhan Kurt

Hi

Do you know if it works for wearable sdk as well on Gear 2?

Regards

A M

tried code above, getting "appControl failed. reason: NotFoundError" on gear2 

Alex Dem

Hi,
AFAIK no.
I did not find anything about appropriate operation in dev guide for wearable 1.0.0. b2.
Alexey.

 

A M

In SDK help: Tizen Wearable Web App Programming > Programming Guide > Device API Guides > Application Guides > Application > Application Controls, 2nd & 5th row in first table named "Standard operations" ;)

But in reality "NotFoundError" appears as described above.

Alex Dem

Hi,
Looks like the page is identical with:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.appprogramming/html/guide/app_guide/launching_appcontrol.htm
I dont know is it ok or not.
Alexey.

Gökhan Kurt

Should be a bug