Web Runtime QuickStart
Your favourite internet experience with a single click.
WeatherBug S60 WRT widget S60 Web Runtime (WRT) widgets are stand-alone web applications that run on S60 devices. Widgets use the same standard internet technologies as web pages (such as HTML, JavaScript™, Ajax, and CSS technologies): You can consider a widget to be a web page without a browser UI. However, S60 WRT widgets have the added benefit of integration with S60 platform features and data.
Together, these features make it possible to optimise content for S60 devices and make it relevant to a user’s situation, to minimise network usage for content updates, and to achieve easier navigation than can be achieved with a full web page in a mobile browser. Essentially, widgets present the user with internet content simply, efficiently, and in a relevant way.
S60 Web Runtime was introduced in S60 3rd Edition, Feature Pack 2, but a software update makes it available on a number of S60 3rd Edition, Feature Pack 1 devices as well. With the introduction of S60 5th Edition, WRT widgets gain a Platform Services binding that provides JavaScript APIs to access device information such as contacts and calendar records and location data. In addition, the S60 WRTKit UI-class library provides building-block images and code that speeds the creation of appealing widgets for S60 devices. Most recently, Forum Nokia has released the Nokia WRT Plug-in for Aptana Studio, making widget development with this popular web-development environment simple and intuitive.
What you should already know
Starting widget development for the S60 platform is easy: All you need is basic-level programming experience within the area of web development. Knowledge of JavaScript, HTML, CSS, and Ajax will be an advantage and enable you to create rich internet applications integrated with the powerful S60 platform.
Start here
If you haven’t already done so, review the Web Runtime technology landing page to get a detailed overview of the technology.
Get to know the development process
The WRT widget-development process is simple and straightforward: In just three steps, you can go from nothing to a ready-to-deploy WRT widget. These steps are achieved easily without the need for special tools. If you'd like to see how to take these steps with the Nokia WRT Plug-in for Aptana Studio, please visit the Nokia WRT Plug-in for Aptana Studio QuickStart page.
1. Create the widget functionality
An S60 WRT widget consists of files based on traditional web technologies and a few WRT widget-specific files. Some of these files are described below.
WRT widget-specific files:
info.plist (mandatory)
This XML-formatted file contains the property and configuration information for the widget, such as the HTML file used and a unique identifier.
icon.png (optional)
This custom icon file represents the widget on an S60 device.
Files based on standard web technologies:
This standard HTML file principally contains information for structuring a widget. The name of the HTML file must be defined within the info.plist properties.
Additional CSS, JavaScript, or image files can be added to the widget package as well.
2. Create a package of the widget component files
Once the widget code has been written, a package for installation on an S60 device can be created as follows:
Select the file system folder that contains the widget components.
From the folder’s shortcut menu, create a ZIP file of the folder using a ZIP utility, such as WinZip.
Change the extension on the resulting file to .wgz.
After the *.wgz package has been created, you can test your widget in the S60 3rd Edition, Feature Pack 2, in the S60 5th Edition emulator, or on a compatible S60 device.
3. Deploy and publish
S60 WRT widgets can be deployed as *.wgz files to S60 devices in several ways: Just select the most suitable option for your business plan. If you decide to distribute the widget from your website, users can download the widget either directly to their S60 devices or to their PCs for transfer to S60 devices for installation.
http://www.forum.nokia.com/Resources_and_Information/Explore/Web_Technologies/Web_Runtime/QuickStart.xhtml
No comments: