Widget development process

The widget development process includes several steps. It is important that you go through all these steps.

To develop a widget for S60 mobile devices:

  1. Define the purpose and scope of your service and design the widget.

    Before starting the actual widget development, define the requirements, scope, and functionality that you wish to implement in your widget. The analysis and design phase is very crucial, especially to efficient functionality and smooth user experience. Remember that a widget is typically designed for a single purpose. Analyze how the widget can best serve its users. You should also carefully consider the special features of the mobile device environment when you design the implementation.

    This step also involves choosing the Web Runtime version for which you develop the widget. Different versions support different features. Which features your widgets uses is determined by its functionality. Also, while the WRT environment is backward-compatible, so that widgets created for an earlier version run normally under a newer one, the opposite is not guaranteed. The Web Runtime version you choose thus determines not only the available features for implementing your widget but also the range of devices that can run the widget. For more information, see sections Widget features and Web Runtime versions and device support.

  2. Create the widget functionality and all the required component files.

    Widgets are based on standard Web technologies, so you can develop your widget using the same tools that you would use to create Web content. For instructions on how to implement the widget functionality, see section [[[ERROR: Unable to generate link title]]]. For more information on the required widget component files, see section Widget component files. For code examples, see the Web Runtime API reference and the Web Runtime Code Examples available at Forum Nokia.

    It is also possible for you to port existing widgets from the Web or desktop environment to S60 mobile devices. For more information on important porting related considerations and changes that you may need to make, see section Porting widgets.

  3. Create the widget installation package:

    1. Select the file system directory that contains the widget component files.

    2. Right-click to create a ZIP archive of the directory using a ZIP utility, such as WinZip.

      Note: The directory must be included in the ZIP archive. That is, the root of the ZIP archive must contain the directory, which in turn contains the widget component files.

    3. Rename the ZIP file manually to have a .wgz extension.

  4. Test the widget.

    You can test your widget with a compatible S60 mobile device or with the emulator included in the S60 C++ SDK. For more information on testing widgets, see section Testing your widget.

  5. Publish the widget and offer it to end users for deployment on S60 mobile devices.

    For more information on widget deployment, see section Deploying widgets.