Tutorials
Develop
This tutorial will assist you with the steps
of the widget development process using a simple widget.


Step 1: Preparation
Step 2: Basic Widget Functionality
Step 3: Advanced Applications

Lesson 2: The widgetPackage.xml file

The structure of widgetPackage.xml file should look like this:

<?xml version="1.0" encoding="utf-8"?>
<widgetPackage xmlns="http://xmlns.sony.net/mylo/widget" version="1.0">
	<info>
		<packageName>Simple Widget</packageName>
		<author>Sony Electronics Inc.</author>
		<abstract>Simple Widget for practice</abstract>
		<version>1.0</version>
		<locale>US</locale>
		<engine>1.0</engine>
		<updateURL></updateURL>
		<downloadURL></downloadURL>
		<siteURL></siteURL>
		<minWidth>21</minWidth>
		<maxWidth>66</maxWidth>
		<defWidth>21</defWidth>
		<defHeight>17</defHeight>
		<createDate>2008-01-01</createDate>
	</info>
</widgetPackage>

Although updateURL, siteURL and downloadURL are not used in this simple widget, we included them in this example as they are important to know about for later widget development.

Tag Attributes
All of the necessary attribute tags are placed under an <info> node and their definitions are as follows:
 
Tag Content Restrictions Necessity
packageName mylo® Widget package name Between 0 and 32 bytes Mandatory
author Author Between 0 and 64 bytes Mandatory
abstract mylo® Widget summary explanation Between 0 and 512 bytes Mandatory
version mylo® Widget package version Numeric (xxx.xxx format up to 7 digits) Mandatory
locale Locale "US" or "JP" Mandatory
engine Required mylo® Screen version Numeric (xxx.xxx format up to 7 digits) Mandatory
updateURL URL for the update check XML file Between 0 and 256 bytes Mandatory
downloadURL URL for the update .mylow file download 256 bytes or less Optional
siteURL Author's site URL Between 0 and 256 bytes Mandatory
minWidth Minimum width (12 X 12 pixel grid units) Between 4 and 66 Optional
minHeight Minimum height (12 X 12 pixel grid units) Between 4 and 36 Optional
maxWidth Maximum width (12 X 12 pixel grid units) Between 4 and 66 Optional
maxHeight Maximum height (12 X 12 pixel grid units) Between 4 and 36 Optional
defWidth Default width (12 X 12 pixel grid units) Between 4 and 66 Mandatory
defHeight Default height (12 X 12 pixel grid units) Between 4 and 36 Mandatory
createDate Creation date YYYY-MM-DD format Mandatory

Go back to the top of the page

Return to Tutorial