Start another native UI app from service

Start another native UI app from service

BY 29 Mar 2014 Native Application Development

Hi

 

I woud like to start my native UI app from my service and pass a few parameters.

I tried this code:

        AppId appID = L"gh13434dad"; // my UI app id 
    	ArrayList* pArgList = new ArrayList();
		pArgList->Construct();

		String * aArg_msg 	 = new String(text);
		String * aArg_address = new String(address);
		pArgList->Add(*aArg_msg);
		pArgList->Add(*aArg_address);

		r = pAppManager->LaunchApplication(appID pArgList, AppManager::LAUNCH_OPTION_DEFAULT);

this code doesn’t start UI app. I got result: E_OBJ_NOT_FOUND. The UI app is installed correctly and can be launch by icon anytime.

I saw comment that this method is deprecated. Is that reason it can’t start another app?

 

How to start another own native UI app from service app? And how to pass and read parameters in launched app ?

 

Regards

slaw

 

 

 

Written by