1

我正在准备一个需要调用拨号器应用程序的应用程序。如何从我的应用程序调用拨号器应用程序。

我的应用程序是用 EFL 编写的。

4

2 回答 2

2

如果您在 Tizen 中使用 EFL 应用程序,请使用以下命令:

service_h service;
service_create(&service);
service_set_package(service, "com.service.call");
service_set_operation(service, "http://tizen.org/appcontrol/operation/main");
service_add_extra_data (service, "launch-type", "MO"); Addtional Data as with Intents
service_send_launch_request(service, NULL,NULL );
service_destroy(service);

这在您的应用程序清单中,添加

<permit>
    <smack permit="com.samsung.w-launcher-app" type="rw"/>
</permit>

在你的应用程序 xml 中,使用这个:

<privileges>
    <privilege>http://tizen.org/privilege/application.launch</privilege>
</privileges>
于 2014-07-22T16:22:48.940 回答
1

你需要的是 AppControl 原生 API,看看这个例子: https ://developer.tizen.org/dev-guide/2.2.0/org.tizen.native.apireference/classTizen_1_1App_1_1AppControl.html

using namespace Tizen::App;

void
MyAppClass::AppControlDialSample(void)
{

    String telUri = L"tel:12345678900";

    AppControl* pAc = AppManager::FindAppControlN(L"tizen.phone", L"http://tizen.org/appcontrol/operation/dial");
    if(pAc) 
    {
        pAc->Start(&telUri, null, null, null);
        delete pAc;
    }
}
于 2014-06-27T08:52:17.563 回答