Launching MFE from another App.
Hello,
I have an app from there I want to launch the MFE application. I use the below code.
void MainWindow::LaunchMfeApp()
{
qDebug()<<" inside laynch mfe";
RApaLsSession apaLsSession;
int err = apaLsSession.Connect();
qDebug()<<" inside apaLsSession mfe"<<err;
if(KErrNone == err)
{
CleanupClosePushL(apaLsSession);
TApaAppInfo appInfo;
TUid kUid = {0x10206962}; <- UID of MFE app
int retVal = apaLsSession.GetAppInfo(appInfo, kUid);
if(retVal == KErrNone)
{
CApaCommandLine* cmdLine = CApaCommandLine::NewLC();
cmdLine->SetExecutableNameL(appInfo.iFullName);
cmdLine->SetCommandL(EApaCommandRun);
int eror = apaLsSession.StartApp(*cmdLine);
qDebug()<<" inside apaLsSession StartApp"<<eror;
CleanupStack::PopAndDestroy(cmdLine);
}
else
{
// The application not found!
}
CleanupStack::PopAndDestroy(&apaLsSession);
}
}
The GetAppInfo returns -1 :(
So is it not possible to do the above requirement
Re: Launching MFE from another App.
-1 means KerrNotFound, so the Uid is likely not valid.
Re: Launching MFE from another App.
I got the Id from the MFE sis that was available for 3rd/ 5th edition phones, for both of them UID was same.
Re: Launching MFE from another App.
I would still check it from the target device, and make sure its same in there as well.
Re: Launching MFE from another App.
From where can I see that on the device, not able to see the MFE on installed app list.. may since they are in ROM, so it may be shown in the installed app list.?
Re: Launching MFE from another App.
You could for exmaple try out my Y-Tasks: [url]http://www.drjukka.com/YTasks.html[/url], the self-signed version should work just fine for this task as well.
Re: Launching MFE from another App.