DM Slide Template Example - Download as PDF

Document Sample
scope of work template
							Developing for Windows Mobile
    What's New for Developers in Windows Mobile 6




Tony Whitter
tonyw@develop.com
    Agenda
•   Introduction
•   Development Platform
•   Targeting Multiple Devices
•   Visual Studio 2008
•   Summary




                                 2
 Windows Mobile
• Developing for Windows Mobile is easy!
   – very similar to desktop development
      • Visual Studio
      • .NET Compact Framework
      • SQL Server Compact
• Very easy to get started
   – Visual Studio 2005 SP1 / 2008 SP1
   – Windows Mobile 6.0 SDKs
   – ActiveSync 4.5 / WM Device Center 6.1
• Windows Mobile now very compelling
   – great platform and development tools
   – powerful new devices



                                             3
Windows Mobile 6

• Latest major release of Windows Mobile
   – released February 2007
• Mainly about usability and functionality
   – major improvements in ease of use
   – updated look and feel
   – new functionality
• Current release is version 6.1
   – released April 2008
   – more usability enhancements
   – much improved manageability




                                             4
Benefits for Developers

• Windows Mobile 6 provides number of benefits
  – easier to build and deploy mobile applications
  – .NET Compact Framework 2.0 SP2 in ROM
  – SQL Server 2005 Compact Edition in ROM
  – highly compatible with Windows Mobile 5
  – enhanced State and Notification Broker
  – support for basic AJAX applications
  – new Windows Mobile 6 SDKs
  – new native APIs
     • sound and ink (WISP Lite)




                                                     5
New Naming Convention

• Windows Mobile 6 introduces new naming
  – due to continuing feature convergence
  – main differentiator is now screen type
• Windows Mobile 6 Professional
  – for phone devices with touch screen
     (was Windows Mobile Pocket PC Phone Edition)
• Windows Mobile 6 Standard
  – for phone devices without touch screen
     (was Windows Mobile Smartphone)
• Windows Mobile 6 Classic
  – for devices with touch screen but no phone
     (was Windows Mobile Pocket PC)



                                                    6
Demonstration
  Developing for Windows Mobile
    Agenda
•   Introduction
•   Development Platform
•   Targeting Multiple Devices
•   Visual Studio 2008
•   Summary




                                 8
New Development Tools

• New emulators
   – Device Emulator 2.0
   – Local Server Framework (AKA FakeServer)
   – Cellular Emulator
   – FakeGPS
• New and updated security tools
   – Security Configuration Manager
   – CabSignerTool
• New testing tools
   – Hopper
   – Windows Mobile Test Framework




                                               9
Local Server Framework

• Test framework for connected applications


       Device
                                              Server
     Application



        Client
   Application API


                               Request        Internet
    Network Layer                                 /
                                              Intranet
                              Response

                                                         10
Local Server Framework

• Server runs locally on device over localhost


                          Device

                        Application



        Client                              FakeServer
   Application API                             API



                          Request
    Network Layer                          FakeServer
                         Response
                                                         11
 Cellular Emulator
• Full featured replacement radio module
   – emulates a real Radio Interface Layer (RIL)
       • incorporates a production radio driver
   – RIL APIs, SIM / USIM file system, AT parser
• Simulates many wireless network scenarios
   – incoming and outgoing voice calls and SMS
   – simultaneous voice and data (SVD)
   – GSM / GPRS / UMTS connectivity
   – 2G / 3G handover roaming
   – PPP data connections




                                                   12
Demonstration
  Cellular Emulator
FakeGPS

• Simulates GPS hardware
   – enables applications to receive GPS data
   – data accessed using normal APIs
   – uses standard NMEA format files
      • \Program Files\FakeGPS\GPSFiles
      • two sample data files provided
• Must install FakeGPS on device
   – CAB file supplied as part of SDK
      • \Program Files\Windows Mobile 6 SDK\Tools\GPS
   – must run in privileged mode




                                                        14
Demonstration
  FakeGPS
Security Configuration Manager

• Easy management of security configuration
   – examine existing security configurations
   – provision standard security configurations
   – save security configurations
   – add development certificates
   – check signatures
   – sign files
• Not installed by default
   – \Program Files
     \Windows Mobile 6 SDK
     \Tools
     \Security
     \Security Powertoy\SecCfgMgr.msi


                                                  16
Testing Tools

• New Hopper stress testing tool
   – simulates application input stress
   – rapidly sends random keystrokes and taps
   – FocusApp keeps application focused
   – has proved useful in finding bugs
   – must also install Hopper on device
   – don’t use on a production device!
• New Windows Mobile Test Framework
   – collection of tools and assemblies
   – used to create and execute UI automation




                                                17
Packaging and Deployment

• Packaging now easier
   – improved CabSignerTool
   – now signs CAB and all executable content
   – includes contained .exe and .dll files
   – signing usually a single operation
• Deployment often quicker and easier
   – common prerequisites already in ROM
      • .NET Compact Framework 2.0 SP2
      • SQL Server 2005 Compact Edition
   – simplifies “over the air” installs




                                                18
    Agenda
•   Introduction
•   Development Platform
•   Targeting Multiple Devices
•   Visual Studio 2008
•   Summary




                                 19
Targeting Multiple Devices

• Device features are merging rapidly
   – stop thinking Pocket PC vs. Smartphone
• Decide on minimum requirements
   – touch screen, keyboard, phone, peripherals
• Use a modular design
   – separate UI code from application logic
   – abstract application logic from differences
• Accommodate differences from outset
   – e.g. touch / non-touch screens, form factors
• Test early and often on all target devices
   – now easy and effective with new emulators




                                                    20
Multiple Form Factors

• Various ways to accommodate form factors
   – no one approach works for all situations
• Adjust layout in code / use multiple forms
   – hard work, little or no designer support
• Use features of .NET Compact Framework
   – Dock, Anchor, AutoScroll, AutoScale
   – good Visual Studio designer support
• Use Orientation Aware Control
   – Patterns & Practices Application Block
   – part of Mobile Client Software Factory
• Use Silverlight 2 for Mobile
   – expected Q2 2009


                                                21
Demonstration
  Orientation Aware Control
    Agenda
•   Introduction
•   Development Platform
•   Targeting Multiple Devices
•   Visual Studio 2008
•   Summary




                                 23
Visual Studio 2008 (“Orcas”)

• Enhancements for device development
   – .NET Compact Framework 2.0 and 3.5
   – Windows Mobile 5.0 SDKs in the box
   – Device Security Manager
   – Unit Testing for Devices
   – Device Emulator 3.0
   – Managed CoreCon




                                          24
.NET Compact Framework 3.5

• Enhancements for managed development
   – Windows Communication Foundation (new email transport)
   – LINQ (XML, Objects and DataSet)
   – Windows Forms enhancements
   – client-side certificates
   – managed sound API
   – improved debugger
   – compression
   – platform ID
• Updated Power Toys
   – Remote PerfMon
   – CLR Profiler


                                                              25
    Agenda
•   Introduction
•   Development Platform
•   Targeting Multiple Devices
•   Visual Studio 2008
•   Summary




                                 26
Summary

• Never a better time to get into mobile
   – great platforms, tools, devices, opportunities
• Design for non-touch and/or touch screen
   – not for Pocket PC and/or Smartphone
• Support as many device types as possible
   – Orientation Aware Control may help
• Visual Studio 2008 delivers even more
   – .NET CF 3.5, unit testing, new tools




                                                      27
 Developer Resource Kit
• New version for Windows Mobile 6
   – everything you need to get started
      • Visual Studio 2005 Professional (90-day trial)
      • Windows Mobile 6 Standard and Professional SDKs
         – emulator images, tools, samples, documentation
      • ActiveSync 4.5 and Windows Mobile Device Center
      • SQL Server 2005 Compact Edition, Tools, Utilities
      • .NET Compact Framework 2.0 Service Pack 2
      • Visual Studio 2005 Service Packs
      • whitepapers, videos, samples
   – updated “Refresh” DVD available now




                                                            28
 Windows Mobile Resources
• Presentation and demonstration source code
   – http://www.whittertechnology.com
• Developer Resource Kit
   – http://msdn.microsoft.com/en-gb/windowsmobile/bb264327.aspx
• Getting Started
   – http://msdn.microsoft.com/en-gb/windowsmobile/bb250560.aspx
• New Developer Portal
   – http://www.microsoft.com/windowsmobile/en-us/developers
• Windows Mobile site
   – http://www.microsoft.com/windowsmobile
• Windows Mobile Team Blog
   – http://blogs.msdn.com/windowsmobile



                                                                   29
Thank You!




Tony Whitter
tonyw@develop.com

						
Related docs