×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102

    How to launch a Widget in an applicaion

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: How to launch a Widget in an applicaion

    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
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102

    Re: How to launch a Widget in an applicaion

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: How to launch a Widget in an applicaion

    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
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: How to launch a Widget in an applicaion

    Could it be possible to launch a WRT Widget by using its UID?

    Pit

  6. #6
    Registered User
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102

    Re: How to launch a Widget in an applicaion

    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
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102

    Re: How to launch a Widget in an applicaion

    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
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: How to launch a Widget in an applicaion

    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

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  9. #9
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: How to launch a Widget in an applicaion

    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
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102

    Re: How to launch a Widget in an applicaion

    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
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: How to launch a Widget in an applicaion

    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

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  12. #12
    Registered User
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    102

    Re: How to launch a Widget in an applicaion

    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
    Replies: 8
    Last Post: 2009-10-20, 12:12
  2. Input Textbox problem in Widget
    By neha.chauhan@kleward.com in forum Symbian
    Replies: 0
    Last Post: 2008-08-27, 16:32
  3. A bug in the example 'Keypad' widget
    By jgroman in forum Symbian
    Replies: 0
    Last Post: 2008-04-19, 18:50
  4. 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
  •  
×