Tutorials to .com

Tutorials to .com » Os » Mobile » Windows Mobile 6.5 at the beginning of the application of your Widgets

Windows Mobile 6.5 at the beginning of the application of your Widgets

Print View , by: iSee ,Total views: 31 ,Word Count: 1094 ,Date: Wed, 17 Jun 2009 Time: 2:54 AM

In the Windows mobile 6.5, after TDK, for application developers, the addition of an interesting application, it is the Widgets! In reference to the Windows Mobile Team Blog article, "Getting started with widgets on Windows Mobile 6.5" After this, we use a text editor and file compression tool, to create one of the most simple application of Windows Mobile 6.5 Widgets.

Widget to do this simple application, we need to have the following conditions:

The Windows Mobile 6.5 emulator images

ActiveSync (xP) or Windows Mobile Device Center (Vista)

Text editor (like Notepad XP own, such as WordPad software).

Well, we started following the first application of Windows Mobile 6.5 Widgets bar.

First of all, refer to the W3C ORG draft standards for the Widgets (draft recently updated May 28, 2009), a compressed zip package of Widgets can contain multiple files, as one of the most simple example, here on the list htm ( Widgets initial document), xml (configuration files) and icon (ico, png or gif, etc.).

A first step, we right-click, create a new text file, copy the following code to the file, and save the file name is widget.htm:

<html>
<head>
<title>Cool Widget!</title>
</head>
<body>
I'm a cool windows mobile 6.5 widget
</body>
</html>

Windows Mobile 6.5 at the beginning of the application of your Widgets

Figure 1: use Notepad to create a document widget.htm

The second step, create a new text file, copy the following code to the file, and save the file name is config.xml:

<?xml version="1.0" encoding="utf-8" ?>
<widget version="1.0"
xmlns="http://www.w3.org/ns/widgets"
id="">
<name>My first widget</name>
<content src="widget.htm" type="text/html" />
<access network="true" />
<icon src="http://www.uudo.net/UpLoadFiles/Files/../UpPic/2009-6/15/0961509432555292.png""/>
<description>This is my first widget,
it won't make a lot of money on the
marketplace but at least is cute!</description>
</widget>
<?xml version="1.0" encoding="utf-8" ?>
<widget version="1.0"
xmlns="http://www.w3.org/ns/widgets"
id="">
<name>My first widget</name>
<content src="widget.htm" type="text/html" />
<access network="true" />
<icon src="http://www.uudo.net/UpLoadFiles/Files/../UpPic/2009-6/15/0961509432555292.png""/>
<description>This is my first widget,
it won't make a lot of money on the
marketplace but at least is cute!</description>
</widget>

Windows Mobile 6.5 at the beginning of the application of your Widgets

Figure 2: use Notepad to create config.xml file

The third step is to find a png file with widget.htm and a config.xml in the same folder, as shown in Figure 3:

Windows Mobile 6.5 at the beginning of the application of your Widgets

Figure 3: the three documents directory

The fourth step, the compressed packet labeled the three documents, in particular, need to pay attention to is to choose. Zip file, as shown in Figure 4:

Windows Mobile 6.5 at the beginning of the application of your Widgets

Figure 4: File compression

The fifth step, the generated file name widget.zip changed from widget.wgt, and cardleWM6.5 simulator, copy the file to the device's My Documents directory. As shown in Figure 5 as follows:

Windows Mobile 6.5 at the beginning of the application of your Widgets

Picture not clear? Click here to view the image (larger).

Figure 5: File copy path

The sixth step, click widget.wgt, installation, as shown in Figure 6:

Windows Mobile 6.5 at the beginning of the application of your Widgets

Windows Mobile 6.5 at the beginning of the application of your Widgets

Figure 6: Installation widget

So far, we have the widgets installed, running, the effect shown in Figure 7 are as follows:

Windows Mobile 6.5 at the beginning of the application of your Widgets

Figure 7: widgets running interface

At the same time, we can Program FilesWidgetsUser2 equipment directory, we find the three files to edit, as shown in Figure 8:

Windows Mobile 6.5 at the beginning of the application of your Widgets

Figure 8: widgets equipment file path


Mobile OS Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.