280 likes | 298 Vues
Introducing the Windows Mobile development. Tautvydas Dagys. 2009. Agenda. Do you remember?. What is .NET Framework?. Architecture of .NET?. What was new in .NET Framework 3.0?. .NET FRAMEWORK 2.0. Windows Workflow Foundation (WF). Windows Presentation Foundation (WPF).
E N D
Introducing theWindows Mobile development Tautvydas Dagys 2009
What was new in .NET Framework 3.0? .NET FRAMEWORK 2.0 Windows Workflow Foundation (WF) Windows Presentation Foundation (WPF) The programming model, runtime, and tools for building long-running, persistent, workflow- and rules-based applications A framework for building user interfaces for applications and media-rich experiences Windows Communication Foundation (WCF) An interoperable framework for building connected applications, with a focus on service orientation and Web services
Introduction • Use the same development tools as desktop developers • There are a few challenges • Slower processors • Battery-powered devices • User interface restrictions • Device security • Application installation and execution • Encryption of data, devices can “easily” be lost
Introduction Win Mobile 6 • One brand name for a wide variety of devices • Win Mobile 6 Standard (Smartphone) • WinMobile 6 Professional (Pocket PC) • Software development tools • Visual Studio 2005 Professional or better • Support for native and managed applications • Microsoft .NET Compact Framework 1.0 and .NET Compact Framework 2.0 support • Visual Studio 2008 • .NET Compact Framework 3.5 and .NET Compact Framework 2.0 support
Development Tools • To develop applications for Windows Mobile 6 devices you need to install the Windows Mobile 6 software development kits (SDKs) • Separate downloads for Standard and Professional editions • Integrate seamlessly in Visual Studio 2005 and Visual Studio 2008 • You can also download Win Mobile 6.1 or 6.5 emulator images to target the newest devices
Development Tools • Developer experience identical for desktop and Windows Mobile applications • Fewer UI controls available • Fewer APIs available • Target the .NET Compact Framework • Highly compatible subset of the full MS .NET Framework
Developing Applications - Challenges • Dealing with different devices, different screen sizes, and different hardware • Creating effective user interfaces • Synchronizing data with desktops and servers • Network connections • Battery life
Device emulators • Why use emulator to begin with? • Allows targeting a large range of devices without having access to physical devices • Allows testing of cellular connections without needing a costly physical connection • Allows easy testing of different security scenarions
Device Emulator Roadmap • Device Emulator 1.0 • Shipped with VS 2005 • ARM based emulator • Device Emulator 2.0 • In-place replacement of Device Emulator 1.0 • Ships with Windows Mobile 6 SDKs • Device Emulator 3.0 • In-place replacement of Device Emulator 2.0 • Ships with Visual Studio 2008
Device Emulators • Why use the emulators to begin with? • Allows targeting a large range of devices without having access to physical devices • Allows testing cellular connections without needing a costly physical connection • Allows easy testing of different security scenarios
Device Emulator 2.0 - Improvements • Faster Performance • Improved JIT ~ 40% performance increase • Updated User Interface • Improved configuration of peripherals • Bug fixes • Soft keys work everywhere • Re-bind NE 2000 adapter to different NICs at runtime • Non-US keyboard support
Device Emulator 2.0 – Cellular Emulator • New tool to test cellular connectivity • Make phone calls from Device Emulator • Receive phone calls on Device Emulator • Send and receive Text Messages
Device Emulator 3.0 – new features • Device Emulator Manager interface exposed • Enumerate all installed emulator images • Programmatically connect and cradle • Fully automated COM interface • Accessible from managed code through the Microsoft.DeviceEmulatorManager.Interop.9.0.dll • Access to interfaces from desktop applications / scripts
Device Emulator 3.0 – new features • XML config file to configure emulator instances • Friendly and easily-customizable alternative to DE command line • New .decfg file format • Save preferred emulator settings under “My Device Emulators” • Retrieve and reconfigure emulator settings at run time via code • DEM UI changes to mirror automation interfaces • Set security configurations through security manager
The Windows Mobile Family • Windows Mobile: many different devices • Different input capabilities • Professional with touch, Standrd no touch • No keyboard, 12-key keyboard, full QWERTY • Many different displays • Different sizes, orientations & resolutions • Phone support • Windows Mobile version differences • Hardware differences
Device differences • Differences breakdown into 3 categories • Availability of touch-screen support • Different Form Factors • Extended capabilities • Windows Mobile version • .NET Compact Framework version • Available Hardware
Windows Forms Development • Not that different from developing Desktop Windows Forms Applications • Less Controls available • Depending on the type of device
Windows Forms Development • Drag and drop controls from the toolbox to the visible form in the Forms Designer • Consider different screen orientations
References • http://msdn.microsoft.com/en-us/windowsmobile/default.aspx • http://msdn.microsoft.com/en-us/rampup/dd807370.aspx