developing widgets for windows mobile 6 5 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Developing Widgets for Windows Mobile 6.5 PowerPoint Presentation
Download Presentation
Developing Widgets for Windows Mobile 6.5

Loading in 2 Seconds...

play fullscreen
1 / 14

Developing Widgets for Windows Mobile 6.5 - PowerPoint PPT Presentation


  • 135 Views
  • Uploaded on

Developing Widgets for Windows Mobile 6.5. What's different in WM 6.5?. Windows Mobile 6.5 on the emulator. Widgets. Conform to proposed W3C widget standard Based on HTML, JavaScript, CSS Can use XMLHttpRequest or XMLDOM Packaged in .zip format (with . wgt extension)

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Developing Widgets for Windows Mobile 6.5' - carrie


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
widgets
Widgets
  • Conform to proposed W3C widget standard
  • Based on HTML, JavaScript, CSS
  • Can use XMLHttpRequest or XMLDOM
  • Packaged in .zip format (with .wgt extension)
  • To develop you’ll need the Windows Mobile 6.5 Developer Toolkit (has emulator images)
manifest config xml
Manifest (config.xml)

Mandatory file

  • <widget> - Root element
  • <access> - Network requirements
  • <content> - required - src attribute links to start file
  • <description> - um….
  • <icon> - A .PNG for touch screen devices
widget manifest continued
widget manifest (continued)

Example:

  • <?xml version="1.0" encoding="utf-8" ?>
  • <widget version="1.0.0.0" xmlns="http://www.w3.org/ns/widgets">
    • <name>GeekzoneFriends</name>
    • <content src="startup.htm" type="text/html" />
    • <access network="true" />
    • <icon src="gzf90.png"/>
    • <icon src="gzf.ico"/>
    • <author email="kevindaly@xtra.co.nz" />
    • <description>Geekzone status updates</description>
  • </widget>
javascript objects widget
JavaScript objects: widget

Exposes useful properties and methods

e.g.

  • widget.authorEmail
  • widget.authorName
  • widget.menu – the widget’s menu
  • Also authorURL, currentIcon, description, height, identifier, locale, name, version, width
widget object continued
widget object (continued)
  • Also exposes persistence methods:
    • widget.preferenceForKey(key)
    • widget.setPreferenceForKey(<value>, key);
systemstate object
SystemState object
  • CradlePresent
  • DisplayRotation
  • PhoneHomeService
  • PhoneOperatorName
  • PhoneRoaming
  • PhoneSignalStrength
  • PowerBatteryState
  • PowerBatteryStrength
systemstate continued
SystemState (continued)

Example (from MSDN):

varcradledState = systemState.CradlePresent; cradledState.addEventHandler("changed", cradled);

useful links
Useful links
  • http://msdn.microsoft.com/en-us/library/dd721906.aspx - MSDN docs (same title as this presentation)
  • http://blogs.msdn.com/windowsmobile/archive/2009/06/04/getting-started-with-widgets-on-windows-mobile-6-5.aspx - Introductory post by Jorge Peraza
  • http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=20686a1d-97a8-4f80-bc6a-ae010e085a6e – Windows Mobile 6.5 Developer Toolkit (includes emulator images)
  • http://windowsteamblog.com/blogs/windowsphone/archive/2009/08/12/widget-anatomy-the-manifest.aspx - Widget Anatomy - The Manifest
me again
Me again:

Kevin Daly (kevindaly@xtra.co.nz)

Blog: kevindaly.spaces.live.com (will move to www.kjdaly.com within the next couple of weeks)