introduction au développement windows phone 8
DESCRIPTION
Venez découvrir le développement pour Windows Phone 8. Cette session vous donnera toutes les clés pour bien aborder les phases du développement d'une application Windows Phone 8 : le premier contact avec les outils, les types de projets, le déboggage, l'analyse de performance, la publication sur le Store...TRANSCRIPT
![Page 1: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/1.jpg)
Donnez votre avis !Depuis votre smartphone, sur : http://notes.mstechdays.fr
De nombreux lots à gagner toutes les heures !!!
Claviers, souris et jeux Microsoft…
Merci de nous aider à améliorer les TechDays
http://notes.mstechdays.fr
![Page 2: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/2.jpg)
Introduction au développement Windows
Phone 8
Jean-Sébastien DupuyTechnical Evangelist – Microsoft France
@dupuyjs
Phone / mobilité
Julien CoriolandDéveloppeur – Infinite Square
@beedoo
![Page 3: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/3.jpg)
Introduction au développement Windows Phone 8
• Pourquoi développer sous Windows Phone ?• Comment démarrer ? • Quel modèle applicatif pour mon application ?• Et avec quels outils ? • Publier sur le Windows Phone Store !
Agenda
![Page 4: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/4.jpg)
Accélérateur Windows
Ressources
Coaching
Visibilité
aka.ms/accelerateur-windows
Plus d’info ? RDV stand Windows 8
L’Accélérateur Windows
![Page 5: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/5.jpg)
POURQUOI DÉVELOPPER SOUS WP8 ?
Introduction au développement Windows Phone 8
Introduction au développement Windows Phone 8
![Page 6: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/6.jpg)
Introduction au développement Windows Phone 8
• Résolutions d’écran : WVGA, WXGA et 720p• Formats de vignettes (Tiles)• Ecran de verrouillage (Lockscreen)• NFC et Portefeuille (Wallet)• Nouveaux Launchers• Cartographie (Maps)• Speech (Synthèse et Reconnaissance Vocale)• Filtres (Lenses)• Association de protocole (App to App communication)• Etc …
Un lot de nouveautés …
![Page 7: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/7.jpg)
Introduction au développement Windows Phone 8
Géolocalisation, Speech, Intégration : Tirez parti des nouveautés de Windows Phone 8Mardi 12 février : 14h30-15h30 (niveau : 200)
Trucs et astuces pour rendre votre application Windows Phone 8 plus visibleMardi 12 février : 16h00-17h00 (niveau : 200)
Plus près, plus près… NFC et la communication à proximité dans Windows 8 et Windows Phone 8Jeudi 14 février : 14h30-15h30 (niveau : 200)
Un lot de nouveautés …
![Page 8: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/8.jpg)
Une histoire partagée …
8Windows KernelWindows KernelWindows NT Kernel
OS Modules
![Page 9: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/9.jpg)
8.0
29 PaysWindows Phone 7.0
180+ PaysWindows Phone 8
63 PaysWindows Phone 7.5
Couverture Clients (Windows Phone Store)
![Page 10: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/10.jpg)
7.5 & 8.0
38 PaysWindows Phone 7.x
180+ PaysWindows Phone 8.0
Couverture Développeurs
![Page 11: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/11.jpg)
Introduction au développement Windows Phone 8
• Confiance. Établir un niveau de confiance élevé dans le store et dans les applications qu'il offre.– 75 000 nouvelles applications– 300 000 mise à jours
• Commodité. Découverte des apps et achats facilités– Collections (Les Essentielles, Saint-Valentin, …)– PayPal, In-App Purchase, …
• Personnalisation. Permettre aux utilisateurs de créer leur propre expérience.– Live Apps (Vignettes et Ecran de Verrouillage)
Back to 2012 : 54 applications par utilisateur !
![Page 12: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/12.jpg)
Introduction au développement Windows Phone 8
• Innovation– Profitez des nouvelles APIs pour offrir une expérience
unique à vos clients– Expérience partagée entre Windows Phone et Windows
8• Opportunité de distribution globale
– 180+ pays sont couverts actuellement• Monétisation
– Choisissez le modèle qui vous convient : Gratuit, Payant, Evaluation, Publicité, In-App Purchase, …
– Carte Bleu, Paypal, Opérateur Mobile, …
Pour résumer …
![Page 13: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/13.jpg)
COMMENT DÉMARRER ?Introduction au développement Windows Phone 8
Introduction au développement Windows Phone 8
![Page 14: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/14.jpg)
Introduction au développement Windows Phone 8
http://dev.windowsphone.com
Le centre de développement Windows Phone
![Page 15: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/15.jpg)
Introduction au développement Windows Phone 8
Les différents SDKs
• SDK 8.0• SDK Update for Windows Phone 7.8• SDK 7.1• SDK 7.1.1 Update
![Page 16: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/16.jpg)
Introduction au développement Windows Phone 8
• Système d’exploitation :– Windows 8 64bits
• Matériel :– 8GB d’espace disque disponible– 4GB de mémoire vive (recommandé)
• Emulateur :– Windows 8 Pro ou plus x64 (Hyper-V)– Second Level Address Translation (SLAT)
Prérequis SDK Windows Phone 8
![Page 17: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/17.jpg)
Introduction au développement Windows Phone 8
• Microsoft capitalise sur les langages et donc vos compétences
• C#, VB.NET et C++• XAML• HTML 5 / JavaScript / CSS (in browser)
Langages et APIs
![Page 18: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/18.jpg)
Langages et APIs
Microsoft.NET
Windows Phone Runtime(WinPRT)
Direct3D, XAudio2,
MediaFoundation, Win32 &
COM
APIs Windows Phone 8
Managé Managé & Natif Natif
![Page 19: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/19.jpg)
Introduction au développement Windows Phone 8
• WinPRT• Sous-ensemble de WinRT + APIs
spécifiques à Windows Phone
Windows Phone Runtime
![Page 20: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/20.jpg)
QUEL MODÈLE APPLICATIF POUR MON APPLICATION ?
Introduction au développement Windows Phone 8
Introduction au développement Windows Phone 8
![Page 21: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/21.jpg)
• La manière la plus traditionnelle de développer des applications Windows Phone
• Interface définie en XAML• Logique écrite avec C# ou Visual
Basic .NET• Accès aux APIs .NET et Windows
Phone Runtime
Interface XAML et Code Managed (C#, VB)
Introduction au développement Windows Phone 8
.NET API for Windows
Phone
Windows Phone
RuntimeManaged Managed
XAML & C#/VB
![Page 22: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/22.jpg)
• Vous pouvez développer des jeux pour Windows Phone via XNA framework
• Mêmes fonctionnalités que Windows Phone OS 7.1
• Logique écrite en C# ou Visual Basic .NET
• Accès aux APIs .NET 7.1, pas d’accès aux APIs Windows Phone 8
• Modèles de projets identiques à ceux de Visual Studio 2010
Jeux XNA en Code Managed (C#, VB)
Introduction au développement Windows Phone 8
.NET API for Windows Phone 7.1
Managed
XNA & C#/VB (+XAML)
XNA Libraries for
Windows Phone 7.1
![Page 23: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/23.jpg)
• Application Direct3D écrite en code natif, utilise uniquement Direct3D pour l’interface
• Développement de Jeux – permet de partager des portions significatives de code avec la version PC
• Accès aux APIs Windows Phone Runtime
• Plus simple de partager des composants natifs : moteurs de rendu, librairies graphiques et jeux d’APIs
Application Direct3D
Introduction au développement Windows Phone 8
Windows Phone
Runtime
Native
Direct3D & C++
Win32 & COM
Native
![Page 24: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/24.jpg)
• Il est également possible de développer des applications en code managed et XAML qui incorporent des graphiques Direct3D– Contrôles DrawingSurface et
DrawingSurfaceBackgroundGrid
Direct3D et XAML
Introduction au développement Windows Phone 8
XAML & C#/VB.NET & C++
.NET API for Windows
Phone
Windows Phone
Runtime
Win32 & COM
Managed Managed Native
Windows Phone
Runtime (Direct3D)
Native
![Page 25: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/25.jpg)
• Les Apps Managed peuvent interagir avec des composants natifs– Ajoutez des composants Windows Phone Runtime à votre
solution XAML/Managed (Interop Win32 et COM possible)• Les jeux d’API Win32 supportent les fonctions Winsock et File I/O
pour faciliter les portages applicatifs depuis du code natif• Permet d’implémenter des composants ‘compute-intensive’ en
code natif pour améliorer les performances– Traitement d’images, modules de calcul, moteur de rendu …
XAML/Managed + Code Natif
Introduction au développement Windows Phone 8
XAML & C#/VB.NET & C++
.NET API for Windows
Phone
Windows Phone
Runtime
Win32 & COM
Managed Native
![Page 26: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/26.jpg)
• Le développement d’applications HTML5/JavaScript ‘Windows 8-style’ n’est pas supporté sous Windows Phone 8– Projections de la Windows Phone Runtime disponibles
en C#/VB.NET et C++ uniquement
• Cependant, Windows Phone 8 inclus Internet Explorer 10– Même code partagée avec Windows 8– Très bon support du code HTML5 (2x plus de
fonctionnalités supportées comparé à Windows Phone 7.5)
– Nouveau moteur de traitement JavaScript (4x plus rapides que Windows Phone 7.5)
• Le même moteur est au cœur du contrôle WebBrowser– Vous pouvez construire des applications HTML5
basée sur le contrôle WebBrowser reposant sur du contenu local ou web
Développement HTML5
Introduction au développement Windows Phone 8
![Page 27: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/27.jpg)
ET AVEC QUELS OUTILS ?Introduction au développement Windows Phone 8
Introduction au développement Windows Phone 8
![Page 28: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/28.jpg)
demoVISUAL STUDIO 2012 & BLENDIntroduction au développement Windows Phone 8
Introduction au développement Windows Phone 8
![Page 29: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/29.jpg)
Introduction au développement Windows Phone 8
• Support des différentes résolutions
• Support des différents OS / contraintes mémoires
• Possède sa propre IP• Support du multi-touch !• Captures, Accéléromètre,
GPS…
L’émulateur Windows Phone
![Page 30: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/30.jpg)
Introduction au développement Windows Phone 8
• Windows Phone 7.1 – USB + Zune
• Windows Phone 8– USB seulement
Déploiement sur un terminal
![Page 31: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/31.jpg)
Introduction au développement Windows Phone 8
• Enregistrement d’un téléphone pour pouvoir déployer des applications dessus
Windows Phone Developer Registration
![Page 32: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/32.jpg)
Introduction au développement Windows Phone 8
• Simulation de la vitesse de la connexion Internet
• Verrouillage de l’écran• Envoie de « rappels »
Simulation dashboard
![Page 33: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/33.jpg)
Introduction au développement Windows Phone 8
• Analyse de l’application à l’exécution• Rapport d’exécution
Application Analysis
![Page 34: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/34.jpg)
Introduction au développement Windows Phone 8
• Comme n’importe quel programme sous Visual Studio
• Emulateur & Terminal– Points d’arrêts– Pas à pas– Affichage & Modification de variables
Le débogue
![Page 35: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/35.jpg)
Introduction au développement Windows Phone 8
• Déploiement d’application dans l’émulateur ou sur un téléphone débloqué
Application Deployment Tool
![Page 36: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/36.jpg)
PUBLIER SUR LE WINDOWS PHONE STORE
Introduction au développement Windows Phone 8
Introduction au développement Windows Phone 8
![Page 37: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/37.jpg)
Introduction au développement Windows Phone 8
De Visual Studio au Windows Phone Store
Packaging & Verification Toolsmyapp.xap
Windows Phone device
Windows PhoneEmulator
![Page 38: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/38.jpg)
• Il n’est pas nécessaire d’avoir un compte développeur Windows Phone pour télécharger le SDK et débuter le développement des applications
• En revanche, il est nécessaire d’avoir un compte développeur pour déverrouiller un téléphone et publier votre application sur le Windows Phone Store (précédemment Windows Phone Marketplace)
• Pour obtenir un compte de Développeur– Inclus dans les abonnements MSDN– Gratuit pour les étudiants dans l’abonnement Dreamspark– $99 par an dans les autres cas
• Demandez votre compte depuis le Windows Phone Developer Center http://dev.windowsphone.com
Compte Développeur Windows Phone
Introduction au développement Windows Phone 8
![Page 39: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/39.jpg)
Introduction au développement Windows Phone 8
Publication sur le Store
![Page 40: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/40.jpg)
• Modèles de Publication– Beta– Publique– Privé
• Monétisation– Gratuit / Payant / avec ou sans version
d’évaluation– In-App Purchase ( Durables ou Consommables )– Publicité
Publiez comme vous voulez …
![Page 41: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/41.jpg)
Géolocalisation, Speech, Intégration : Tirez parti des nouveautés de Windows Phone 8Mardi 12 février : 14h30-15h30 (niveau : 200)
Trucs et astuces pour rendre votre application Windows Phone 8 plus visibleMardi 12 février : 16h00-17h00 (niveau : 200)
Cycle de vie d'une application Windows 8 et Windows Phone 8Mardi 12 février : 16h00-17h00 (niveau : 300)
Et ensuite ?
![Page 42: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/42.jpg)
L'histoire d'HTML5 pour les développeurs Windows Phone 8Mercredi 13 février : 16h00-17h00 (niveau : 200)
Bien soumettre et monétiser votre application Windows 8 et Windows Phone 8Jeudi 14 février : 11h00-12h00 (niveau : 200)
Plus près, plus près… NFC et la communication à proximité dans Windows 8 et Windows Phone 8Jeudi 14 février : 14h30-15h30 (niveau : 200)
Et ensuite ?
![Page 43: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/43.jpg)
• Windows Phone Developer Center• Communauté Développeurs Windows
Phone (sur facebook)• Accélérateur Windows
(aka.ms/accelerateur-windows)• http://www.juliencorioland.net• http://blogs.msdn.com/jdupuy
Ressources
![Page 44: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/44.jpg)
Formez-vous en ligne
Retrouvez nos évènements
Faites-vous accompagner gratuitement
Essayer gratuitement nos solutions IT
Retrouver nos experts Microsoft
Pros de l’ITDéveloppeurs
www.microsoftvirtualacademy.com
http://aka.ms/generation-app
http://aka.ms/evenements-developpeurs
http://aka.ms/itcamps-france
Les accélérateursWindows Azure, Windows Phone,
Windows 8
http://aka.ms/telechargements
La Dev’Team sur MSDNhttp://aka.ms/devteam
L’IT Team sur TechNethttp://aka.ms/itteam
![Page 45: Introduction au développement Windows Phone 8](https://reader035.vdocuments.pub/reader035/viewer/2022062513/555c7bf6d8b42a12348b4e26/html5/thumbnails/45.jpg)
Questions ?