Revision as of 10:27, 5 July 2011 by hamishwillee (Talk | contribs)

Porting between Symbian Web Runtime and Nokia Asha Web Apps

From Nokia Developer Wiki
Jump to: navigation, search

S40 Web App is a zip file actually(.wgt),which is similar to the Symbian Widget(.wgz).They have same file construction and different executive mechanism.And the developers can port Symbian Widget to S40 Web App conveniently after some little alterations.

1.HTML Item size

The screen size of S40 device is different from Symbian devices,so the application must chang the width and height of the item in .html or .css file such as text image audio video etc,which will get the best display for UI.

2.Media file size

The resource of S40 device is lower then Symbian devices commonly,in order to run the application faster the developers had better use small media file,which will cost lower system resources.

Before these steps,developers must re-edit the info.plist file and save it as config.xml.

If the info.plist file of a Symbian Widget is

<plist version="1.0"><dict>
<string>A Widget</string>

and the config.xml of a S40 Web App must be altered as

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns=" http://www.w3.org/ns/widgets" height="200" 
id="http://nokia.com/simplemaps" version="0.1.0" 
viewmodes="windowed fullscreen" width="200">
    <name short="AW">A Widget</name>
    <icon src="icon.png"/>
    <content src="AWidget.html"/>

certainly,if need be,the developers can add other tags such as


<author email=" mailbox@email.com" 
href=" http://www.website.com/">



196 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.