Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Opera Widget porting example - Hello World!

From Wiki
Jump to: navigation, search
Article Metadata
Created: andrew.wharton (02 Nov 2009)
Last edited: hamishwillee (25 Jul 2012)



This is an example of porting an Opera Widget to Nokia WRT using the guide found here. The example widget will be an Opera tutorial widget called Hello World!. The tutorial for how to make the widget can be found here.

OperaWidgetPortingExamples HelloWorld Widget.png

1. Download the .zip package

The Hello World! zip package can be found by following this link.

2. Unzip the Hello World widget archive

The archive needs to be unzipped to make modifications to its contents, so go ahead and extract it.

3. Create info.plist manifest file

When installing a .wgz file the system looks for a manifest file called info.plist. The Opera Widget equivalent is called config.xml.

Here's how to use the Opera Widget config.xml data to create the WRT manifest file:

  1. Download and unzip this info.plist template file and save it in the widget's root directory.
  2. Open the widgets config.xml file and find the <widgetname> element. Copy the text found within the element and paste it into the <DisplayName> element of the info.plist file.
    <string>Hello World!</string>
  3. Add the <Identifier> as a random integer 30 digits long.
  4. Add the <MainHTML> as index.html.
  5. Leave <AllowNetworkAccess> as </true>.
    <true />
  6. Save the file.

4. Packaging

Re-zip the containing Hello World! folder and change the file extension from .zip to .wgz.
OperaWidgetPortingExamples HelloWorld Packaged.png

5. Deploy

Upload the widget to your mobile device and install. Here is an example of the ported widget. Remember to change the extension to .wgz before installing.

This page was last modified on 25 July 2012, at 06:37.
21 page views in the last 30 days.