Hi,
I attempted to launch a widget in my Symbian c++ application.
However,I have no idea where the widget installed and how to run the widget.
Does anyone help?
Thank you
Hi,
I attempted to launch a widget in my Symbian c++ application.
However,I have no idea where the widget installed and how to run the widget.
Does anyone help?
Thank you
--------------------------------------------------------
Ling
I have also not seen how it could be done. The files are in private folder, so you cna not access them. Anyway, have you tried just incorporating the widget files into your own folders, and then opening the HTML file with Browser control ?
I checked the document which showed that info.plist and html should be deployed into Root. What's meaning of Root? I can access to the other executable file in /sys/bin.
Furthermore, the icon of widget appears in the same location as my application's. Is this possible to invoke a shotcut of widget?
regard to what you mentioned
I have no idea how to deploy the info.plist and html files into my own folder.It seems to unzip automaticly.
--------------------------------------------------------
Ling
What I meant was that you would have the HTML file and others required by it (and not info list or icon), and store the files in your own folder, and then just use browser control to load the HTML file.
Could it be possible to launch a WRT Widget by using its UID?
Pit
I just did a test.
1.i copied the test.wgz file into e:/others
2.unziped test.wgz file
3.checked the new folder 'test' has been created and all the related files were stored in it.
4.click html file in the folder
5.the index page appeared but the linkage in the page were not available
6.ran the widget from 'Application',it worked well.
Does this mean the Web run time environment is not start yet if i just open an html page.
--------------------------------------------------------
Ling
Use RApaLsSession to enumerate the installed applications and you will find the widget in that list so you can extract the UID. Then use the UID to start the application.
-- Lucian
Hei,
Lucian is right.
I loaded all the applications into a list firstly.
then,checked the widget's caption in all the applications.
if found, then
CApaCommandLine* cmdLine = CApaCommandLine::NewLC();
cmdLine->SetExecutableNameL(*iAppList[aIndex]->iFullName);
cmdLine->SetCommandL(EApaCommandRun);
retCode = iApaLs.StartApp(*cmdLine);
CleanupStack::PopAndDestroy(cmdLine);
Now, it works on my phone.
--------------------------------------------------------
Ling
Yes, we also have a Technical Solution published on the Knowledge Base showing how to uninstall a widget from a Symbian app. Of course the widget has to be identified first so that it's install time generated UID can be used by the uninstall API.
Don't remember which phones were used for testing though.
-- Lucian