Upload
agneth-zierden
View
108
Download
1
Embed Size (px)
Citation preview
| Basel
Entwickeln von Windows Phone Unternehmens-Apps
Thomas Claudius HuberTrivadis AG
Thomas Claudius Huber
Principal Consultat bei Trivadiswww.trivadis.comwww.thomasclaudiushuber.comTrainer, Coach, Developer, Architect
Spezialisiert auf XAML, WPF, UIMicrosoft MVP im Bereich Client Development
Autor umfassender HandbücherWPF, Windows Store Apps und Silverlight
Thomas’ Phone-CV2000 Nokia 32102002 Nokia 7650
… some other Nokias2007 HTC Dual Touch (Windows Mobile)2007 Sony Ericsson 2009 iPhone 3GS2010 Samsung Omnia 7 (WP7)2011 Samsung Galaxy SII (Android)2012 Nokia Lumia 920
Agenda
Sessioninhalt
Windows Phone 8 ÜberblickEine App erstellenDeployment-Möglichkeiten
| Basel
Windows Phone 8 Überblick
Als Entwickler loslegen
Portal unterhttp://dev.windowsphone.com
Zum Entwickeln wird kein Account benötigt
Neu: Mit einem Account lassen auch Windows Store Apps veröffentlichenIndividual: 19$; Company: 99$
Windows Phone 8
Apps mit XAML/C#, C/C++, HTML/JavaScriptNative C++-Apps werden unterstützt -> Insbesondere beim Gaming-Bereich interessant (DirectX)
Windows Phone 7-Apps laufen nach wie vorMicrosoft hat diese aus Optimierungsgründen neu kompiliert
Baut auf Windows Phone Runtime auf (WinPRT)
Windows Phone Runtime (WinPRT)Untermenge der Windows Runtime (WinRT)+ Phone-spezifische KlassenCode lässt sich somit in Windows Store Apps und Windows Phone Apps wiederverwenden
Besteht aus nativem Code und .NET MetadatenMetadaten werden in .winmd-Dateien gespeichert (Windows Metadata) C:\Program Files (x86)\Windows Phone Kits\8.0\Windows MetaData\Windows.winmdDemo
1280x768 (WXGA)
1280x720 (720p)
800x480(WVGA)
Windows Phone 8 - Auflösungen
Windows Phone 8 - Auflösungen
Betriebssystem übernimmt SkalierungVektorgrafiken für 800x480 erstellenBitmaps für WXGA (1280x768) erstellen
Im AppManifest lassen sich Skalierungen festlegenPer default werden alle Skalierungen unterstützt
DisplayProperties-Klasse enthält aktuelle SkalierungKlasse enthält statische ResolutionScale-PropertiesKlasse stammt aus dem Namespace Windows.Graphics.DisplayDemo
Windows Phone 8 Update 3
Das nächste grosse Update für WP8Wird auch als GDR3 bezeichnet (General Distribution Release)
Bringt Full HD (1920x1080)Das neue Nokia Lumia 1520 wird das erste «Phablet» mit dieser AuflösungAb 5“ Bildschirmdiagonale zusätzliche Standard-Live-Tile-Spalte
Unterstützt neue Prozessorenz.B. Qualcomms Snapdragon 800
Agenda
Sessioninhalt
Windows Phone 8 ÜberblickEine App erstellenDeployment-Möglichkeiten
| Basel
Eine App erstellen
Clients
Windows Phone 8 im Unternehmen
WPF
Services (Rest, WCF, ...)
Database
Business Layer
WindowsStore Apps
Windows Phone
...
Local Storage Folder
Clients
Windows Phone 8 im Unternehmen
Services (Rest, WCF, ...)
Database
Business Layer
Windows Phone AppDataProvider
Business-Apps – Windows Phone
Daten anzeigen und bearbeitentypische CRUD-Szenarien
Validieren von EingabenFehler anzeigen, Speichern unterbinden
Wart- und Testbarkeit mit MVVM erhöhenUI-Logik wird in ViewModels gepackt
Eine kleine App erstellen
Demo
Validierung
Verschiedene Validierungs-MöglichkeitenExceptions, IDataErrorInfo, INotifyDataErrorInfo,...
NotifyOnValidationErrros-Property des Binding-Objekts auf true setzenAnsonsten wird das BindingValidationError-Event nicht ausgelöst
BindingValidationError-Event registrierenDarin Fehler anzeigen/verbergen
Demo
Windows Phone Toolkit
Enthält für Business-Apps wichtige ControlsDatePicker, AutoCompleteBox, ContextMenu etc.Weitere Infos unter http://phone.codeplex.com/
Download via NuGethttp://nuget.org/packages/wptoolkit
Alternativ zu NuGet lässt sich der Source-Code auch selbst kompilierenDownload des Source-Codes unter http://phone.codeplex.com/SourceControl/latest
Weiteres
SQLite Datenbank für lokalen Speicherhttp://sqlwinrt.codeplex.com/
Microsoft Sharepoint SDK for Windows PhoneEnthält Bibliotheken und Projektvorlagen, um Sharepoint-Apps zu entwickeln
Agenda
Sessioninhalt
Windows Phone 8 ÜberblickEine App erstellenDeployment-Möglichkeiten
| Basel
Deployment-Möglichkeiten
Windows Phone 8 - Deployment
Via Windows Phone StoreHier steht die App der breiten Öffentlichkeit zur Verfügung
Windows Intune oder SSCMSSCM=System Center 2012 Configuration ManagerBeides sind Verwaltungstools, Windows Intune ist cloud-basiertNeue Apps lassen sich bspw. per E-Mail an Benutzer versenden
Als Company App
Company App – notwendige SchritteUnternehmens-Account erstellendev.windowsphone.com
Enterprise Zertifikat von Symantec erwerbenhttps://products.websecurity.symantec.com/orders/enrollment/microsoftCert.doDie benötigte Symantec Id steht im Unternehmensaccount unter dev.windowsphone.com
Enterprise Zertifikat als PFX exportieren
Company-App – notwendige SchritteApplication Enrollment Token (AET) erstellenWindows Phone 8 SDK enthält dazu den AETGenerator C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\AETGenerator
Empfohlen: Company Hub-App erstelleneine Portal für den Benutzer, das ihn zu allen Apps der Firma führt: Erlaubt Suche, Installation etc.
Company-Apps zum Verteilen vorbereitenIn der XAP enthaltene Managed Assemblies vorkompilierenXAP-Datei mit der aus dem Enterprise Zertifikat generierten PFX-Datei signieren: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XapSignTool\
Company-App – notwendige SchritteBenutzern die AET und Company Hub XAP bereitstellenAET ist eine .aetx-Datei
Klick auf .aetx-Datei fügt Unternehmens-Account zum Phone hinzuEs lassen sich mit mehreren .aetx-Dateien auf einem Phone auch mehrere Firmen nutzen
Klick auf XAP-Datei installiert Company Hub-AppThat’s it! Jetzt kann der Benutzer darüber die weiteren Firmen-Apps installieren
Agenda
Sessioninhalt
Windows Phone 8 ÜberblickEine App erstellenDeployment-Möglichkeiten
Fazit
Mit Windows Phone 8 lassen sich Business-Apps entwickelnDeployment im Unternehmen ist mit Windows Phone 8 in wenigen Schritten möglich
Tolle Preise am Trivadis Stand
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a
commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a
commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Slides/Samples unter:
www.thomasclaudiushuber.com/talks.php
Twitter: @thomasclaudiushMail: [email protected]