Microsoft .NET
mobiililaitteille: .NET
Compact Framework
Aali Alikoski
Architect Evangelist
Microsoft Finland
[email protected]
Agenda
z
Visual Studio .NET & .NET Framework
z
Microsoft-alustan mobiililaitteet
z
Mobiilikehitys
Visual Studio .NET 2003 &
.NET Framework
Microsoft .NET – mikä?
1.
Microsoftin implementaatio Web
Services –teknologioista
2.
Alusta sovellusten tekemiseen
Microsoft-ympäristössä nyt ja
tulevaisuudessa
”Software to connect
information, people, systems
and devices”
Mitä .NETtiin kuuluu?
z
Työkalut sovellusten tekemiseen
¾
Visual Studio .NET
¾
Joukko ohjelmointikieliä
¾
.NET Framework
z
Alusta sovellusten suorittamiseen
¾
Windows-käyttöjärjestelmä
¾
.NET Framework
¾
Taustalla myös palvelimia - .NET
Enterprise Servers
.NET Framework Class Library
Windows
Forms
Enterprise
Services
ASP.NET
ADO.NET
More
Windows ja palvelinsovellukset
Common Language Runtime
Browser
Apps
Web Services
Mobile
Apps
Local
Apps
Monen kielen tuki
z
.NET on kieliriippumaton
¾
Kaikki .NET-kielet samanarvoisia
¾
Integraatio kielten välillä
¾
Samat ohjelmointityökalut
z
Microsoft tekee
¾
Visual Basic
®
, C++, C#, J#, JScript
®
z
Kolmannet osapuolet
¾
APL, COBOL, Eiffel, Fortran, Haskell, ML,
Perl, Python, RPG, Scheme, Smalltalk, …
Käyttöliittymät
z
Neljä erilaista .NET-käyttöliittymää
1.
”Perinteinen” Windows-sovellus
2.
”Perinteinen” Web-käyttöliittymä - selain
3.
”Mobiili” Windows-sovellus - PocketPC
4.
”Mobiili” Web-käyttöliittymä –
WAP-kännykkä
z
Muut käyttöliittymät?
¾
Toiminnallisuus käyttöön Web-palveluiden
kautta…
¾
…jolloin käyttöliittymä voi olla melkein
mitä vain!
Development For Mobile Devices
Development Platform Overview
Local Code Remote Web Pages
Visual Studio .NET
.NET Framework
Mobile Web
Browser .NET CompactFramework
Client-side
Rich Apps
Server-side
Web Apps
Mobile Devices
Windows XP-based
z
Laptops and Tablet PCs
¾
Windows XP
¾
Windows XP Tablet PC Edition
z
Custom devices
¾
Windows XP Embedded
¾
Custom operating system built from
Windows XP components
Mobile Devices
Windows CE-based
z
PDA-style
¾
Pocket PC 2000, 2002 & Phone Edition
Windows CE 3.0
¾
Pocket PC 2003 & Phone Edition
Windows CE.NET 4.2
z
Phone-style
¾
SmartPhone 2002
Windows CE 3.0
¾
SmartPhone 2003
Windows CE.NET 4.2
Pocket PC Phone vs Smartphone
z Pocket PC Phone Edition¾ Touch Screen
¾ PDA Form Factor
¾ Storage in RAM
¾ 32 - 128MB RAM, ~200 - 400MHz CPU z Smartphone
¾ No Touch Screen
¾ Phone Form Factor
¾ Durable Like a Phone
¾ Storage on Flash
¾ 16MB RAM, ~125 - 200MHz CPU z Both
¾ Multimedia Features
¾ Pocket Outlook, Pocket Internet Explorer
¾ GSM/GPRS or CDMA Radio
¾ SD Card
¾ More…
Network Connectivity
z
Technologies supported by Windows
CE
¾
WLAN
¾
Bluetooth
¾
GSM/GPRS/CDMA
¾
IrDA
z
Hardware support
¾
Varies by device
¾
Not all technologies supported in all
devices
Laitteiden saatavuus
Suomessa
z
Pocket PC
¾
Tarjontaa paljon
z
Puhelinlaitteet (Phone Edition &
SmartPhone)
¾
Qtek maahantuoja M-Technology Oy
http://www.m-technology.fi
¾
Useita jälleenmyyjiä
http://www.qtek.fi/retailers.htm
Mobile Browser
Applications
Development For Mobile Devices
Mobile Browser Applications
Visual Studio .NET
.NET Framework
Mobile Web
Browser .NET CompactFramework
Local Code Remote Web Pages
Range of Devices
Web
Site
The Solution:
ASP.NET Mobile Controls
z
Adaptively render to devices based on
browser, device and gateway
combination
z
Extend ASP.NET to empower web
developers to build mobile web
applications
z
Integrates with the Visual Studio .NET
development environment for ease of
use.
z
Formerly known as Microsoft Mobile
Internet Toolkit.
The Solution:
ASP.NET Mobile Controls
z
Single mobile Web page that adapts to
multiple devices
z
Support multiple mark-up languages
¾
WML1.1 (WAP), cHTML 1.0, xHTML Mobile
and Basic profile, and HTML 3.2
z
Support for a variety of devices
¾
Web enabled Cell Phones, PDAs, and
Pagers
z
Customizable and extensible framework
¾
Add new controls and devices
¾
Support for new devices with out having to
rewrite or recompile your application
Supported Mobile Browsers
z
V1.0: Support for 80+ devices
¾
ACCESS Compact, Ericsson, GoAmerica
Go.Web, Microsoft Mobile Explorer, Microsoft
Pocket Internet Explorer, Nokia, Openwave
UP.Browser 3.x and 4.x, many more…
z
Device Update 1, May 2002: ~150 devices
z
Device Update 2, January 2003: 200+
devices
z
Device Update 3, August 2003: 236 devices
z
If your device is not supported in a Microsoft
Device Update pack:
¾
Extensibility features allow you to add your own
support
Mobile Windows
Applications
Development For Mobile Devices
Mobile Windows Applications
Visual Studio .NET
.NET Framework
Mobile Web
Browser .NET CompactFramework
Local Code Remote Web Pages
Managed Code Development
Visual Studio .NET & .NET Compact Framework
z
Rich, deep API for smart devices
¾
User Interface: GDI+, Windows Forms
¾
Connectivity: Web services, TCP/IP, IrDA
¾
Data Access: ADO.NET, XML
¾
Native code interoperability
z
JIT compiled, not interpreted
¾
Best of managed & native worlds
z
Visual Studio .NET IDE
Visual Studio .NET 2003
z
Supports Pocket PC 2002 out of the
box
¾
Pocket PC 2002 Emulator
z
2003 versions supported via free
downloads
¾
Windows Mobile 2003 Pocket PC SDK
¾
Windows Mobile 2003 Smartphone SDK
¾
Emulators for 2003 versions
¾
www.microsoft.com/windowsmobile/devel
oper
Visual Studio .NET 2003
Device Features
z
Visual Basic .NET and Visual C# .NET
Compact Framework Support
z
Features
¾
Device project templates
¾
Rich designers and editors
¾
Integrated help and samples
¾
Emulation
¾
Remote debugging
Compact Framework Support in
Devices
z
Windows Mobile 2003
¾
Based on Windows CE .NET 4.2 operating system
¾
Includes Compact Framework in ROM
z
Pocket PC 2003
¾
Full compact framework
z
Smartphone 2003
¾
Subset of compact framework features
¾
Most Pocket PC features fully supported
Controls adapted to have Smartphone look & feel
Smartphone navigation model supported
Support for keypad navigation and keypad events
Supported Controls
Pocket PC and Windows CE.NET
Button
CheckBox
ComboBox
ContextMenu
DataGrid
DomainUpDown
FileOpenDialog
HScrollBar
ImageList
Label
ListBox
ListView
TreeView
FileSaveDialog
zSupported controls
MainMenu NumericUpDown Panel PictureBox ProgressBar RadioButton StatusBar TabControl TextBox Timer ToolBar VScrollBar MessageBox FormSupported Controls
Smartphone
Button
CheckBox
ComboBox
ContextMenu
DataGrid
DomainUpDown
FileOpenDialog
HScrollBar
ImageList
Label
ListBox
ListView
TreeView
FileSaveDialog
z
Supported controls
MainMenu
NumericUpDown
Panel
PictureBox
ProgressBar
RadioButton
StatusBar
TabControl
TextBox
Timer
ToolBar
VScrollBar
MessageBox
Form
Smartphone Developer Kit
z
red e SC1100 Smartphone device
z
Null SIM
z
Mobile Development Toolkit
(Resource CD)
¾
VS .NET 2003 trial
¾
Smartphone 2003 SDK
¾
Whitepapers, Getting Started, etc.
z
Available for $499.00
Data Access in Compact
Framework
z
ADO.NET DataSet
z
Providers for SQL Server
¾
7.0, 2000
¾
CE 2.0
z
Strategies
¾
Always connected
¾
Caching
¾
Occasionally connected
SQL Server CE 2.0
z
SQL Server engine for Windows CE
devices
¾
Only Pocket PC supported currently
z
Many SQL Server features supported
z
Local access via
System.Data.SQLServerCE
Futures
.NET Futures
z
Next generation
¾
.NET Framework 2.0
¾
Visual Studio ”Whidbey”
¾
SQL Server ”Yukon”
SQL Server CE ”Laguna”
z
Beyond
¾
Windows ”Longhorn”
Core Concepts For Whidbey
z
Integrated Native and Managed
Development Environment
z
Enhanced Language Support
z
Performance – Making the machine
faster
z
Extensibility – Extend and integrate the
.NET CF platform into your device
z
Library Evolution – Increased
developer productivity and code
portability
Summary
z
Developer tools for 2003 versions are
available now
¾
Pocket PC & Smartphone
¾
VS.NET 2003 & Compact Framework 1.0
for managed development
z
Target non-MS devices with ASP.NET
© 2003 Microsoft Corporation. All rights reserved.