×
Namespaces

Variants
Actions
(Difference between revisions)

Opera Widget porting example - NHL News

From Nokia Developer Wiki
Jump to: navigation, search
andrew.wharton (Talk | contribs)
(added screenshots)
andrew.wharton (Talk | contribs)
m
Line 26: Line 26:
 
Re-zip the containing Google News folder and change the file extension from .zip to .wgz.<br />[[File:OperaWidgetPortingExamples_GoogleNews_Packaged.png]]
 
Re-zip the containing Google News folder and change the file extension from .zip to .wgz.<br />[[File:OperaWidgetPortingExamples_GoogleNews_Packaged.png]]
 
== 5. Deploy ==
 
== 5. Deploy ==
Upload the widget to you mobile device and install.
+
Upload the widget to your mobile device and install.

Revision as of 17:36, 2 November 2009


Contents

Preface

This is an example of porting a Opera Widget to Nokia WRT using the guide found here. The example widget will be a Google News Reader widget.

OperaWidgetPortingExamples GoogleNews Widget.png

1. Download the .zip package

The Google News zip package can be found by following this link.

2. Unzip the Google News 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.OperaWidgetPortingExamples GoogleNews DisplayName.png
  3. Add the <Identifier> as a random integer 30 digits long.
    OperaWidgetPortingExamples GoogleNews Identifier2.png
  4. Add the <MainHTML> as index.html.
    OperaWidgetPortingExamples GoogleNews MainHTML2.png
  5. Leave <AllowNetworkAccess> as </true>.
    OperaWidgetPortingExamples GoogleNews AllowNetworkAccess.png
  6. Save the file.

4. Packaging

Re-zip the containing Google News folder and change the file extension from .zip to .wgz.
OperaWidgetPortingExamples GoogleNews Packaged.png

5. Deploy

Upload the widget to your mobile device and install.

70 page views in the last 30 days.
×