260 likes | 554 Views
Mobiiliohjelmointipäivä TTY 19.12.2005. .NET Compact Framework 2.0 Visual Studio 2005. Aali Alikoski Academic Developer Evangelist, Microsoft Oy aali@microsoft.com http://blogs.msdn.com/aalialikoski. Agenda. Microsoftin mobiilivisio .NET mobiilikehityksessä
E N D
Mobiiliohjelmointipäivä TTY 19.12.2005 .NET Compact Framework 2.0Visual Studio 2005 Aali Alikoski Academic Developer Evangelist, Microsoft Oy aali@microsoft.com 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
IntroductionWindows 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…
Development For Mobile DevicesDevelopment Platform Overview Visual Studio .NET .NET Framework Server-side Web Apps Client-sideRich Apps Local Code Remote Web Pages Mobile Web Browser .NET CompactFramework
Gaining Momentum 10 million+ Devices with Microsoft .NET Compact Framework in ROM 200,000+ .NET Compact Frameworkdevelopers 600,000+ Downloads of V1 Service Packs
Base Class Library Support Thread Support COM Marshaler Type Checker Exception Manager Security Engine Debug Engine IL to Native Compilers Code Manager Garbage Collector Class Loader .NET Managed Development The Common Language Runtime
FX Rich class libraries to make your life easy! • GUI: Forms • GUI: Drawing (2D & 3D) • Collections • IO, Networking, Crypto • Native interop • Web services • Data & Xml • Globalization CLR Execution Engine provides type-safe runtime for managed code • Type system • Loader • JIT Compiler • Garbage collector • Debugger Windows CE Low level operating system-specific functionality • Threads • Memory • File I/O • Networking • Localization The .NET Compact Framework Visual Studio
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
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 FrameworkSmaller but still powerful
86% scope of Full .NET Framework Copy Ground-up rewrite Snapshot & Modify Execution Engine JIT, GC, Loader, assembly cache System.Threading Microsoft.Win32.Registry System.Text.Regex System.Collections System.Xml System.Generic.Collections System.IO System.Cryptography System.Data System.Resources Microsoft.DirectX.Direct3DMobile System.IO.Ports System.Messaging System.Net System.String 91% scope of Full .NET Framework Windows.Forms Microsoft.VisualBasic System.Text System.Drawing System.Globalization System.Web.Services The .NET Compact FrameworkImplementation
The .NET Compact FrameworkHow 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 PlatformOverview • 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 PlatformNew 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 PlatformNew 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 PlatformNew 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
Same things as in the full 2.0 framework Generics Partial classes Anonymous methods Subset of VB.NET ”My” namespace More UI controls New in Compact Framework 2.0 Pocket PC Smartphone
What Version 2.0 Will BringAdditional 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
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.