You Are Here:

Community: Wiki

This page was last modified on 26 November 2009, at 13:54.

Opera Widget porting example - Chinese Abacus

From Forum Nokia Wiki


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 Chinese Abacus widget.

file:OperaWidgetPortingExamples_ChineseAbacus_Widget.png

1. Download the .zip package

The Chinese Abacus zip package can be found by following this link.

2. Unzip the Chinese Abacus 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.
    <key>DisplayName</key>    
    <string>Chinese Abacus</string>
  3. Add the <Identifier> as a random integer 30 digits long.
    <key>Identifier</key>       
    <string>8920345783973089573298573498743</string>
  4. Add the <MainHTML> as index.html.
    <key>MainHTML</key>
    <string>index.html</string>
  5. Leave <AllowNetworkAccess> as </true>.
    <key>AllowNetworkAccess</key>   
    <true />
  6. Save the file.

4. Packaging

Re-zip the containing Chinese Abacus folder and change the file extension from .zip to .wgz.

File:OperaWidgetPortingExamples_ChineseAbacus_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.

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia