语言

Menu
Sites
Language
Invoking native ui app from service app

I want to invoke native ui app from servive app plz guide me

响应

5 回复
Alex Ashirov

You can try the following:

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fapp%2Flaunching_other_apps_within_apps.htm

I hope this is applicable for the service apps as well. Actualy, I didn't develop them before.
 

Alex Dem

Hi,
1) Just launch UI app directly from service app:
ServiceApp::OnAppInitialized()
{
    AppId callerAppId = L"someId";
    AppManager* pAppManager = AppManager::GetInstance();
    result res=pAppManager->LaunchApplication(callerAppId, AppManager::LAUNCH_OPTION_DEFAULT);
}
2) You could register your UI app like app control and launch it from service App
using AppManager::FindAppControlN(AppId,Operation);
Alexey.

P puvvada

Thanks a lot

P puvvada

plz send the code that  you have tried 
 

Alex Dem

I hope in your case first way will be enough(code is provided).
I don't have exact code sample for second case but you should:
1) edit manifest of UI App this way:
https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fapp%2Fexporting_appcontrol_functionality.htm
2)resolving AppControls this way:
https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fapp%2Fresolving_appcontrols.htm
Second way is useful if you need to deliver launch arguments to app.
Alexey.