如何在Tizen wear上打电话?

How to make call on Tizen wear?

我需要打电话给Tizen wear。通过调用权限和以下代码,我可以通过单击按钮启动对任意号码的调用。目前在模拟器上没有任何反应。

static void Make_SOS_Call(void *data, Evas_Object *obj, void *event_info) {

app_control_h app_control = NULL;
app_control_create(&app_control);
app_control_set_app_id(app_control, "com.samsung.call");
app_control_add_extra_data(app_control, "number", "999");
app_control_add_extra_data(app_control, "launch-type", "MO");
if(app_control_send_launch_request(app_control, NULL, NULL) == APP_CONTROL_ERROR_NONE){
    dlog_print(DLOG_DEBUG, LOG_TAG, "starting call");
}

app_control_destroy(app_control);
}

如何打开通话对话并成功拨打电话?

您能否阅读 Tizen Common App Control 页面并尝试调用示例代码? https://docs.tizen.org/application/native/guides/app-management/common-appcontrols#call

`

app_control_set_operation(request, APP_CONTROL_OPERATION_CALL);
app_control_set_uri(request, "tel:0123456789");

app_control_send_launch_request(request, NULL, NULL);
app_control_destroy(request);

`