1 / 36

Windows Phone 7 Developer Guide

Windows Phone 7 Developer Guide. A guide to 3 screens and the cloud. Scott Densmore Sr. Software Development Engineer Microsoft patterns & practices. About you (an assumption). You… are a developer know C# are building applications for Windows Phone 7

brit
Download Presentation

Windows Phone 7 Developer Guide

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Windows Phone 7 Developer Guide A guide to 3 screens and the cloud Scott Densmore Sr. Software Development Engineer Microsoft patterns & practices

  2. About you (an assumption) • You… • are a developer • know C# • are building applications for Windows Phone 7 • are building applications for other mobile platforms • want to connect your mobile application to the cloud

  3. Goals for this session • Intro Windows Phone 7 • How to build applications for Windows Phone 7 • Simple examples • How to connect your Windows Phone 7 application to the cloud • TailSpin survey application connected to Windows Azure

  4. Windows phone 7

  5. metro

  6. METRO Metro Principals • Clean, light, open, fast • Celebrate typography • Alive & in motion • Content not chrome • Authentically digital

  7. WHAT ARE YOU BUILDING? Silverlight vs XNA

  8. WHAT ARE YOU BUILDING? XNA • Performance is impressive, especially in 3D • Hardware based graphics acceleration • There are some very interesting input options • You can use all the hardware and sensors in your Windows Phone games • Potential for Xbox Live integration • Support for Avatars and Achievements • Support for in-game advertising • Viable alternative to charging for your code

  9. What are you building? Considerations • Do not try to adapt an existing UI design directly to the phone • Design for both portrait and landscape • Place menus and other options at the bottom so the users hand does not obstruct the rest of the content • Provide feedback to actions • Set the InputScope for text controls • Follow the Windows Phone 7 Design Guidelines

  10. DEMO What are you building?

  11. connectivity

  12. Connectivity Considerations • Device is occasionally connected • Signal can switch between Wi-Fi to GPRS (General Packet Radio Service) • Have an offline experience

  13. DEMO Connectivity

  14. Shared Environment

  15. Shared Environment Considerations • Minimize device resource usage • e.g. Only enable GPS when you need it • Use async programming techniques • Reactive Extensions • Optimize memory usage • Maximize GPU usage • Do not use all of the storage for your application • Mango – Multi-tasking

  16. Storage

  17. storage • Isolated storage is used to store data • 256 MB of memory and to 8 GB of flash • Serializable collections is a good way to store data • Third party databases are available • Mango – includes SQL CE phone storage hardware

  18. STORAGE Considerations • Use the DeviceExtendedProperties to check for memory installed and avialble • Clean up resources that are no longer needed • Consider using a cache to improve performance • Compress data or use data formats that are compact (JSON / Binary)

  19. Security

  20. Secuirty Considerations • Use HTTPS when connecting to services • Encrypt data that you store on the phone • User HTTPS when communicating with the Push Notification Service • Do not store sensitive data and keys on the device • Mango – DPAPI

  21. Interruptions

  22. interruptions Considerations • Many events can cause interruptions on the phone • Camera task • Email task • A phone call • Handle the events exposed by the operating system to save state of the application (Tombstoning)

  23. DEMO Tombstoning

  24. Why Phone + Cloud? Tailspin

  25. Building the client

  26. Building the client Overview

  27. Building the client MVVM

  28. DEMO Building the Client

  29. Connecting to the cloud Why Phone + Cloud? • The cloud levels the playing field • The cloud provides a larger pool of resources from which to pull • The cloud provides a way to reach across device platforms

  30. Connecting to the cloud Services • HTTP-based, request/response • Framework choices (WCF, OData, WebRequest, etc.) • Wire format choices (SOAP, JSON, POX, etc.)

  31. Connecting to the cloud TailSpin Services

  32. Connecting to the cloud Push Notifications Cloud Service Push URI to Cloud Service 4 Push enabled application 3 1 5 Push URI request/response HTTP Post to URI with payload Push notification to device Push client service 6 Windows Phone 7 2 Push client/server negotiation MPNS

  33. Connecting to the cloud TailSpin Push Notifications

  34. DEMO Connecting to the Cloud

  35. resources • WP7 Book • http://wp7guide.codeplex.com • Windows Phone 7 • http://www.windowsphone.com • Me • scottden@microsoft.com • @scottdensmore • http://scottdensmore.typepad.com

  36. Questions? After the session please fulfil the questionnaire. Questionnaires will be sent to you by e-mail and will be available in the profile section of the NT Conference websitewww.ntk.si. Thank you!

More Related