1 / 33

Windows Mobile Today

Windows Mobile Today. David Goon Consultant Microsoft Limited. Agenda. Compact Framework 2.0 SP1 Windows Mobile 5.0 Windows Mobile 6 Summary. Compact Framework 2.0 SP1. Common Language Runtime for devices Managed Code Execution for applications Memory, thread and security management

saxton
Download Presentation

Windows Mobile Today

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Windows Mobile Today David Goon Consultant Microsoft Limited

  2. Agenda • Compact Framework 2.0 SP1 • Windows Mobile 5.0 • Windows Mobile 6 • Summary

  3. Compact Framework 2.0 SP1 • Common Language Runtime for devices • Managed Code Execution for applications • Memory, thread and security management • Code compilation and verification • Just-In-Time compilation • Applications are in MSIL • Not interpreted so no speed penalties • All programming languages are equal

  4. Framework for Devices • Framework optimized for limited resources • Small footprint of 2-5MB installable to SD • Native components written from ground up • Managed bits adapted from full framework • Designed for portability • Base Class Library • Subset of desktop .NET Framework library • Additional classes for device-specific functions • Same programming model as Desktop

  5. Technology Examples • Web Services • Database Access • XML Documents • Message Queuing • Serial Port Programming • Much, much more

  6. Large Range of Controls • Date and Time Pickers • Document List • Notification Bubble • Link-Label • Web Browser • DataGrid • IME switching

  7. Display and Layout • Orientation Support • Docking • Anchoring • AutoScroll property • Automatic scaling

  8. Direct 3D Mobile • Managed APIs DX9 inspired

  9. Security Enhancements • Identical security experience to native apps

  10. Native Interop • Enhanced P/Invoke Type Marshalling • Additional types – arrays, strings, structures • Embedded arrays – structs with char[], array[] • MarshalAs – type hinting • Use COM objects in your managed code • Call from managed applications into COM • Callbacks from native to managed code • Support for late-bound and early-bound calls

  11. Performance Biggeris better Smalleris better

  12. Performance Measurement • <My App>.stat • Enable through Device registry setting • HKLM\SOFTWARE\Microsoft\ .NETCompactFramework\ PerfMonitor • Counters (DWORD) = 1 • Remote Performance Monitor

  13. Performance David Goon Consultant Microsoft Limited

  14. Windows Mobile 5.0 • Based on Windows CE 5.0 • Goals • Improve productivity and stability • Leverage images and sound to communicate • Drive Operator and OEM costs down

  15. Additions to Pocket PC • Persistent Store • Protects user data against battery loss • Battery reserve no longer required • Batch file/database/registry reads and writes • Single-tier Security • Either run Full Trust or not at all • Requires modules to be signed • Defaults to prompt for unsigned applications • Soft-keys

  16. Pocket PC Security

  17. Pocket PC Soft-keys • Designer menu support • Soft-keys if two items • Menu for three items above • Left button is default action • Menu restriction removed • Right button for menu

  18. Windows Mobile 5.0 APIs • ActiveSync • Component Services • Device Configuration • File System and Data Stores • Messaging • Networking • Power Management • Shell and UI

  19. Common Dialogs • Operating System has common tasks • Windows Mobile 5.0 exposes these • Developers can use in applications

  20. Managed Outlook Mobile • New Managed Model • Far simpler than using the COM interfaces • Access • Contacts • Calendar • Tasks • Messaging • Notifications • Be alerted when PIM items change

  21. State & Notification Broker • Unification of device states • Examples (see SnAPI.h for full list) • Phone (e.g. Missed Call, Phone Status) • Network Connections (e.g. WiFi, GPRS) • Calendar (e.g. Next Appointment) • Messaging (e.g. Unread Mail Count, SMS) • Many others (e.g. Orientation, Cradled) • Extensible

  22. Notification Types • Transient Notifications • Application notified only while running • Notification methods • Window Message, CE Message Queue, Callback • Persistent Notifications • Application launched if not already running • Notification methods • Command line, Window Message • Persists across reboot

  23. Global Positioning Systems • Access through GpsApi.h • Parses, multiplexes, notifies • API Examples • GPSOpenDevice() • GPSCloseDevice() • GPSGetPosition() • GPSGetDeviceState() #include <GpsApi.h> HANDLE h; GPS_POSITION pos; h = GPSOpenDevice( heventNewPos, heventDeviceStateChange, NULL, 0); GPSGetPosition(h, &pos, 60000, 0); // Get back pos.dblLongitude, // pos.dblLatitude

  24. Putting it all together

  25. Sample Walkthrough • Business Requirement • Company employs field sales personnel to pursue leads • Customer calls Sales Office • Office obtains details and locates sales person • Sales person needs to be alerted with accurate information

  26. Sample Solution Tasks • Sending an SMS message to the device. • Intercepting the SMS message. • Creating the Contact and Appointment entries • Alert the application on next Appointment • Do something special when alerted.

  27. Sample Walkthrough David GoonConsultant Microsoft Limited

  28. Windows Mobile 6 • Also based on Windows CE 5.0 • Goals • Advanced Mobile Communication • Improved Productivity • Integrated Business Performance • Evolution of Windows Mobile 5.0 • Better Email experience with IRM and Fetch • Office Mobile now on Standard (Smartphone) • Increased security e.g. SD encrypt and wipe

  29. New for Developers • In ROM • Compact Framework 2.0 SP1 • SQL Server Compact Edition • Additional Native APIs • WISP Lite Inking API • Eventual replacement for Rich Ink • New Sound APIs • Support for WMV, WAV, MID and MP3

  30. Summary • Compact Framework 2.0 SP1 • Powerful Runtime • Easy-to-use Base Class Libraries • Windows Mobile 5.0 and 6 • Great Platform Features • Managed Code Access • Combined • Flexible and Productive Solutions • Rapid Application Development

  31. Questions • dgoon@microsoft.com • Developer Centre • http://msdn.microsoft.com/mobility/ windowsmobile

  32. © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

More Related