![Page 1: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/1.jpg)
Windows Phone 7 Development
By: Walaa Mohamed Atef
![Page 2: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/2.jpg)
Changing our game
![Page 3: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/3.jpg)
How it looks like.
![Page 4: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/4.jpg)
![Page 5: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/5.jpg)
Windows Phone 7 Development
Platform Overview
![Page 6: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/6.jpg)
Hardware Foundation
Display480x800 QVGA
320x480 HVGA (future)
Capacitive touch4 or more contact points
Camera5 mega pixels or more
Hardware buttonsStart, Search, Back
GPUDirectX 9 acceleration
CPUARMv7 Cortex/Scorpion or better
Memory256MB RAM or more
8GB Flash or moreSensorsA-GPS, Accelerometer, Compass, Light
MultimediaCodec acceleration
Common detailed specs (What does it meant?)
![Page 7: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/7.jpg)
Software Architecture
KernelHardware BSP
App Model UI Model Cloud Integration
Applications
App managementLicensingChamber isolationSoftware updates
Shell frame Session managerDirect3DCompositor
Xbox LIVEBingLocationPush notificationsWindows Live ID
Your App UI and logic
A-GPS Accelerometer Light Compass ProximityMedia Wi-Fi Radio Graphics
SecurityNetworkingStorage
Frameworks
Silverlight XNA HTML/JavaScript
CLR
Hardware Foundation
![Page 8: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/8.jpg)
Windows Phone 7 Development
Development Overview
![Page 9: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/9.jpg)
Development Options
High performance game framework
Rapid creation of multi-screen 2D and 3D games
Rich content pipeline
Mature, robust, widely adopted technology spanning Xbox 360, Windows, and Zune
Modern XAML/event-driven application UI framework
Rapid creation of visually stunning apps
Metro-themed UI controls
500,000 developers spanning Windows and web
![Page 10: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/10.jpg)
Tools To Get
• Windows Phone Developer Tool.
– VS 2010 Express for WP7
– Expression Blend 4 for WP7
– Silverlight (3) for WP7
– XNA Game Studio for WP7
– Windows Phone Emulator
– Phone Registration Tool
• Windows Phone 7 Training Kit.
![Page 11: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/11.jpg)
Development Considerations (Phone is different than a PC).
• Limited Battery Life
• Poor Network Connectivity
• Different Performance Characteristics
• Small Screens
• Many input mechanisms. (Touch & Accelerometer)
• Possible frequent interruptions
![Page 12: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/12.jpg)
Windows Phone 7 Development
Application Life Cycle
![Page 13: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/13.jpg)
World of Interruptions
lock screen
![Page 14: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/14.jpg)
No Multi-tasking
Dead Running
![Page 15: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/15.jpg)
Application Life Cycle…
Not running
Launching
Running
Closing
User exits the application (press back from the first page) –Closing event
User Starts the application –Launching Event
![Page 16: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/16.jpg)
Application Life Cycle…
Running
Deactivated
Tombstoned (in most
cases)
Activated
The application’s process is killed (in most cases)*
Save state for later use
Load state to continue where she left off
User is back where she left off
![Page 17: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/17.jpg)
Application Life Cycle…
Start
Launching event
App Running
User ‘Backs’
past first page
Closing event
User invokes chooser or launcher, or
presses Start to launch another
app
Deactivated event
![Page 18: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/18.jpg)
Application Life Cycle…
Restored app instance
App Running
User presses Start and launches your
application
User completes chooser or
launcher. Or user navigates back
from other app to reach your app
Deactivated event
Activated event
New app instance
Launching event
App Running
![Page 19: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/19.jpg)
Windows Phone 7 Development
Launchers and Choosers
![Page 20: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/20.jpg)
Launchers & Choosers
• The Windows Phone execution model isolates every application in its own sandbox– Apps cannot directly access information stores,
such as contacts
– Apps cannot directly invoke other applications, such as phone or messaging
• Launchers and Choosers allow applications indirect access to these phone features
• Launcher and Chooser APIs invoke distinct built-in applications that replace the currently running application
![Page 21: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/21.jpg)
Launchers & Choosers
• Launcher– Launches one of the built-in applications through which a user
completes a task– No data is returned to calling application– Example: PhoneCallTask
• Chooser– Launches one of the built-in applications through which a user
completes a task– Returns some data to calling application– When caller completes, calling application is reactivated and supplied
with the Chooser result• Note, user can cancel the launcher, resulting in an empty return value
– Example: PhotoChooserTask
![Page 22: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/22.jpg)
Launchers & Choosers
Launchers PhoneCallTask
SearchTask
SMSComposeTask
WebBrowserTask
EmailComposeTask
MarketplaceDetailTask
MarketplaceHubTask
MarketplaceReviewTask
MarketplaceSearchTask
MediaPlayerLauncher
Choosers CameraCaptureTask
EmailAddressChooserTask
PhoneNumberChooserTask
PhotoChooserTask
SaveEmailAddressTask
SavePhoneNumberTask
![Page 23: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/23.jpg)
Demo no. 1
My First Windows Phone Silverlight Application
![Page 24: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/24.jpg)
Push Notification
Your Cloud Service
Microsoft Push Notification
Services
Your Application
Push Client
![Page 25: Windows Phone 7 Development By: Walaa Mohamed Atefdownload.microsoft.com/download/6/b/7/6b791f54-6ad... · Windows Phone 7 Development Application Life Cycle. World of Interruptions](https://reader035.vdocuments.us/reader035/viewer/2022062920/5f0281ac7e708231d40499d1/html5/thumbnails/25.jpg)
Thanks
© 2010 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.