#1 - Introduzione Windows Mobile Marco Frontini [email protected] Product Manager www.softandroll.it Utilizzo del device Come l’applicazione utilizza il device? Shared • convive con altre • dialoga con le altre • interfaccia consistente • installazione per l’utente • risorse HW-SW condivise • conforme alle guidelines • logo-compliant? probabile Exclusive • è l’unica applicazione • “deve” essere l’unica • interfaccia custom • installazione forzata • risorse HW-SW esclusive • guidelines opzionali • logo-compliant? difficile Pensare a quali problemi ne derivano e come risolverli Panoramica su Windows CE Win CE, Pocket PC, Windows Mobile, ... ? • • • • • • • • Windows CE, un OS Modulare non solo per PPC o SP Windows CE 3.0 (CF supportato solo su Pocket PC) Handheld PC 2000 (CF non supportato) Windows CE .NET 4.2 Windows for Pocket PC 2000-2002 (CE 3.0) Windows Mobile 2003 (CE .NET 4.2) Windows Mobile 2003 SE (CE .NET 4.21) Windows Mobile 5.0 (CE .NET 5.0 ) Introduzione Piattaforma Windows Mobile Visual Studio 2005 Managed Native MFC ATL Server side .NET Compact Framework 2.0 Win32 ASP .NET Mobile Controls Software Platform (APIs) Device Management Communication Presentation Data Access Remote API Configuration* Bluetooth Not. Broker Pocket Watson Connection Manager TAPI* SMS* MAPI* POOM* Home Screen User Interface/Shell HTML Control DOM Multimedia SQL Mobile ADO CE XML CE DB OLE DB GAPI Camera D3DM Windows Mobile Windows CE CE DB ActiveSync SQL Mobile Pocket Outlook Pocket Internet Explorer Windows Media Player Drivers Device Hardware Processor Memory Display USB or Serial Radio GSM/GPRS CDMA/1xRTT WiFi Bluetooth * = Managed wrappers Devices e piattaforme supportate dal .NET Compact Framework Device Platform .NET CF Version In ROM Pocket PC Pocket PC Phone Edition Pocket PC 2000, Pocket PC 2002 Windows Mobile 2003 for Pocket PC Windows Mobile 2003 for Pocket PC SE Windows Mobile Version 5.0 for Pocket PCs 1.0 1.0, 2.0 1.0, 2.0 1.0, 2.0 1.0 sp1 1.0 sp2 1.0 sp3 Smartphone Windows Mobile 2003 for Smartphone Windows Mobile 2003 for Smartphone SE Windows Mobile Version 5.0 for Smartphone 1.0 1.0 1.0, 2.0 1.0 sp1 1.0 sp2 1.0 sp3 Other Windows CE devices Windows CE 4.1 Windows CE 4.2 Windows CE 5.0 1.0 1.0 1.0, 2.0 1.0 1.0 sp1 1.0 sp3 Differenze con la versione Full .NET CF è un sottoinsieme della versione Full Differenze • • • • Tipi (molte classi sono state omesse) Method Overloads (molti Overloads sono stati tralasciati) Web Services (solo client) NGen (manca) Classi mancanti • • • Classi legate alla stampa (Crystal, PrintDialog, etc.) Binary Serialization Remoting Classi mancanti nel CF 1.0 • • • • Microsoft.Win32.Registry namespace System.Xml.XPath namespace ed Extensible Stylesheet Language Transformation (XSLT) COM Interop Bluetooth Il codice è sempre IL compilato a runtime con il JIT, esiste la GAC Windows Forms Controlli, proprietà e metodi mancanti Controlli non supportati • • • ColorDialog FontDialog OpenFileDialog, SaveFileDialog • Common dialogs • Custom Controls • solo un livello sotto My Documents • non sono supportate su Smartphone • supportati in VS 2005, ma anche in VS 2003... Proprietà e metodi non supportati • TabIndex, TabStop • Data Binding • introdotti nel CF 2.0 • DataSet, non è supportata la proprietà DataGrid.DataMember Namespaces e tipi specifici del CF • • • • • System.Net.IrDA System.Data.SqlServerCe System.SR <System.Windows.Forms.DataGrid> in un assembly separato Microsoft.WindowsCE.Forms • InputPanel, MessageWindow Nel CF 2.0 • • • • Microsoft.WindowsMobile.DirectX System.Messaging - MessageQueue CustomMarshalers Microsoft.WindowsCE.Forms • Notification (balloon), DocumentList, InputMethod, InputModeEditor, MobileDevice.Hibernate event, SystemSettings.ScreenOrientation Per Windows Mobile 5.0 (compilati per CF 1.0) • • • • • • Microsoft.WindowsMobile Microsoft.WindowsMobile.Configuration Microsoft.WindowsMobile.Forms Microsoft.WindowsMobile.PocketOutlook Microsoft.WindowsMobile.Status Microsoft.WindowsMobile.Telephony