Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User eling0167's Avatar
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102
    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

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,670
    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 ?

  3. #3
    Registered User eling0167's Avatar
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102
    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
    Quote Originally Posted by symbianyucca View Post
    Anyway, have you tried just incorporating the widget files into your own folders, and then opening the HTML file with Browser control ?
    I have no idea how to deploy the info.plist and html files into my own folder.It seems to unzip automaticly.
    --------------------------------------------------------
    Ling

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,670
    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.

  5. #5
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Could it be possible to launch a WRT Widget by using its UID?

    Pit

  6. #6
    Registered User eling0167's Avatar
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102
    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

  7. #7
    Registered User eling0167's Avatar
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102
    Quote Originally Posted by jappit View Post
    Could it be possible to launch a WRT Widget by using its UID?

    Pit
    Where i can find the UID of widget?
    --------------------------------------------------------
    Ling

  8. #8
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    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.

  9. #9
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,670
    Quote Originally Posted by ltomuta View Post
    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.
    Hello Chief, Did you try that on a device ?

    At least my E71 is not showing Widgets as separate applications..

  10. #10
    Registered User eling0167's Avatar
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102
    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

  11. #11
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    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.

  12. #12
    Registered User eling0167's Avatar
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102
    Is it possible to package the widget files into sis file?If so, user no necessary to install twice(application and widget).
    Quote Originally Posted by ltomuta View Post
    Don't remember which phones were used for testing though.
    My test device N95.Software version:30.0.015
    --------------------------------------------------------
    Ling

Similar Threads

  1. Distorted widget icon
    By xbit- in forum Symbian Web Runtime
    Replies: 8
    Last Post: 2009-10-20, 12:12
  2. Input Textbox problem in Widget
    By neha.chauhan@kleward.com in forum Symbian Web Runtime
    Replies: 0
    Last Post: 2008-08-27, 16:32
  3. A bug in the example 'Keypad' widget
    By jgroman in forum Symbian Web Runtime
    Replies: 0
    Last Post: 2008-04-19, 18:50
  4. Tai Wan widget hands-on training
    By happywolf in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 1
    Last Post: 2008-03-31, 09:45
  5. about widget engine source code and widget engine principium?
    By wangpiguang in forum Symbian Web Runtime
    Replies: 0
    Last Post: 2008-01-11, 09:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved