Windows Mobile sovelluskehitys
Download
Report
Transcript Windows Mobile sovelluskehitys
Mobiiliohjelmointipäivä TTY 19.12.2005
.NET Compact Framework 2.0
Visual Studio 2005
Aali Alikoski
Academic Developer Evangelist, Microsoft Oy
[email protected]
http://blogs.msdn.com/aalialikoski
Agenda
Microsoftin mobiilivisio
.NET mobiilikehityksessä
Windows Mobile 5 ja Compact Framework 2.0
uutuudet
Visual Studio 2005 työkaluna (demo)
Microsoftin mobiilivisio
Pääpaino ”bisnessovelluksissa”
Mobiilisovellukset eivät ole saarekkeita
Vaan tyypillisesti laajemman taustajärjestelmän
laajennoksia
Esim Pocket Outlook
Yhtenäinen kehitysympäristö
Mobiiliohjelmointi samanlaista kuin kaikki muukin
(Win, Web, jne)
Kun osaat yhden, osaat kaikki
Introduction
Windows Mobile 5.0
Next generation of Windows Mobile
Successor to Windows Mobile 2003 Second Edition
New naming reflects Windows CE platform version
Codenamed ‘Magneto’ during development
Effectively ‘Windows Mobile 2005’
Release products now shipping
Windows Mobile 5.0 Pocket PC OS and SDK
Windows Mobile 5.0 Smartphone OS and SDK
ActiveSync 4.1
Pocket PC Phone vs Smartphone
Pocket PC Phone Edition
Touch Screen
PDA Form Factor
32 - 128MB RAM, ~200 - 400MHz CPU
Smartphone
No Touch Screen
Phone Form Factor
Durable Like a Phone
16-32MB RAM, ~125 - 200MHz CPU
Both
Storage on Flash
Multimedia Features
Pocket Outlook, Pocket Internet Explorer
GSM/GPRS, CDMA, WCDMA, 3G Radio
SD Card
More…
.NET mobiilikehityksessä
Development For Mobile Devices
Development Platform Overview
Visual Studio .NET
.NET Framework
Server-side
Web Apps
Remote Web Pages
Mobile Web
Browser
Local Code
.NET Compact
Framework
Client-side
Rich Apps
Gaining Momentum
10 million+
Devices with Microsoft .NET
Compact Framework
in ROM
200,000+
.NET Compact Framework
developers
600,000+
Downloads of
V1 Service Packs
.NET Managed Development
The Common Language Runtime
Base Class Library Support
Thread Support
COM Marshaler
Type Checker
Exception Manager
Security Engine
Debug Engine
IL to Native
Compilers
Code
Manager
Class Loader
Garbage
Collector
The .NET Compact Framework
Visual
Studio
Rich class libraries to make your life
easy!
FX
GUI: Forms
GUI: Drawing (2D & 3D)
Collections
IO, Networking, Crypto
Native interop
Web services
Data & Xml
Globalization
Execution Engine provides type-safe
runtime for managed code
CLR
Type system
Loader
JIT Compiler
Garbage collector
Debugger
Low level operating system-specific
functionality
Windows CE
Threads
Memory
File I/O
Networking
Localization
The .NET Compact Framework
Comparisons with the Desktop Framework
Both
Modern, managed runtime environments
Greatly enhance developer productivity
Provide both C# and VB.NET languages*
Major releases in Visual Studio
Full .NET Framework
Extremely rich, scalable, secure, powerful
.NET Compact Framework
Preserves essence of full .NET Framework
Optimized for small size, portability
Web Services support
Compact Framework supports client-side Web
Services development
The same model as in full framework
Mobile platform has its own specialities that
need special consideration (although getting
better all the time)
Low speed network
Lower processing power
The .NET Compact Framework
Smaller but still powerful
28% of the surface area in 8% of the size
Omitted
Server functionality (ASP.NET)
Functionality rare for a device (Remoting)
Expensive functionality (Reflection Emit)
Individual properties, methods, events –
classes factored at member level
Managed C++, J#
The .NET Compact Framework
Implementation
Ground-up rewrite
Execution Engine
86% scope
of Full
.NET
Framework
Snapshot & Modify
System.Threading
JIT, GC, Loader,
assembly cache
Microsoft.Win32.
Registry
System.IO
System.Text.Regex
System.Collections
System.Xml
System.Generic.
Collections
System.Cryptography
Microsoft.DirectX.
Direct3DMobile
System.Data
System.Resources
System.IO.Ports
System.Messaging
System.Net
Windows.Forms
System.String
Microsoft.VisualBasic
System.Drawing
System.Web.Services
Copy
91% scope
System.Text
of Full
.NET
Framework
System.Globalization
The .NET Compact Framework
How do you get it?
OEMs
Adaptation Kits (and AKUs)
Platform Builder (and PB Updates)
Developers
Microsoft Visual Studio (and SPs)
Developer Redistributable on microsoft.com
.NET Developer Platform SDK (New!)
End Users
In ROM on their device
In the setup of their applications
End User Redistributable on microsoft.com
Windows Mobile 5 ja Compact
Framework 2.0 uutuudet
Kehittäjän näkökulmasta
Development Platform
Overview
Windows Mobile 5.0 extends developer support
New native APIs and functions
New managed APIs
Many updates of interest to developers
User interface operation and appearance
File system and program storage
Database functionality
Application integration
New security model
Development Platform
New Native APIs
ActiveSync
Start and stop ActiveSync process
Digital Rights Management (DRM)
Common interface to wide range of DRM engines
Global Positioning System (GPS)
Shared access to GPS via GPS Intermediate Driver
Graphics
Direct3D Mobile (D3DM), DirectDraw, DirectShow
Development Platform
New Managed APIs
Configuration Manager
Configure virtually all aspects of device
Messaging
Support for both email and SMS messages
Outlook Mobile
Access to Pocket Outlook Object Model (POOM)
Telephony
Exposes basic telephone behaviour
Development Platform
New Common Functionality
Camera Capture API
Camera capture dialog for still and video images
Pocket Outlook enhancements
Contact selection dialog, custom properties, event
notifications, mail application management
State and Notification Broker
Unified information storage and event notification
Picture selection dialog
Easy to use picture selection facility
New in Compact
Framework 2.0
Same things as in the full
2.0 framework
Generics
Partial classes
Anonymous methods
Subset of VB.NET ”My”
namespace
More UI controls
Pocket PC
Smartphone
What Version 2.0 Will Bring
Additional Managed Libraries from the OS
New in Windows Mobile 5.0
WindowsMobile.PocketOutlook
Appointments, contacts, tasks
Messaging – Email and SMS
WindowsMobile.Status
Track System State
WindowsMobile.Telephony
Initiate calls
Visual Studio 2005
kehitysvälineenä
Demo
Sovellus joka reagoi vastaamatta jääneisiin puheluihin
Tunnistaa Contactin
Lähettää tekstiviestin soittajalle
Laittaa merkinnän kalenteriin
Tekniikat
Compact Framework 2.0
Windows Mobile 5
Kokeile!
Soita 050 5673471
Laitan koodin jakoon lähiaikoina:
http://blogs.msdn.com/aalialikoski
Linkkejä
www.microsoft.com/windowsmobile/5
msdn.microsoft.com/mobility/windowsmobile
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only.
MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.