Porting between Symbian Web Runtime and Nokia Asha Web Apps
m (moved Alteration in Porting Symbian Widget to S40 Web App to Porting between Symbian Web Runtime and Series 40 Web Apps: Official branding names)
Revision as of 10:27, 5 July 2011
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
<xmlversion="1.0"encoding="UTF8"> <DOCTYPEplistPUBLIC "//Nokia//DTDPLIST1.0//EN" "http://www.nokia.com/NOKIA_COM_1/DTDs/plist-1.0.dtd"> <plist version="1.0"><dict> <key>DisplayName</key> <string>A Widget</string> <key>Identifier</key> <string>xxx.xxx.widget</string> <key>MainHTML</key> <string>AWidget.html</string> </dict></plist>
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"/> ... </widget>
certainly,if need be,the developers can add other tags such as
<description>...</description> <author email=" email@example.com" href=" http://www.website.com/"> Corporation </author> <license>...</license>