Presentation is loading. Please wait.

Presentation is loading. Please wait.

Windows Phone 8 Application Foundation

Similar presentations


Presentation on theme: "Windows Phone 8 Application Foundation"— Presentation transcript:

1

2 Windows Phone 8 Application Foundation
Thomas Fennel Senior Program Manager Lead 2-204

3 Agenda slide App Lifecycle Performance Multitasking Phone Integration
Enterprise

4 Application Lifecycle

5 Application Lifecycle – Launching & Closing
not running Closing launching Launching Launching running closing Running in Background

6 Application Lifecycle – Activated & Deactivated
running Activated Deactivated activated deactivated tombstoned suspended

7 Application Lifecycle Events
Build 2012 9/10/2018 Application Lifecycle Events PhoneApplicationService Launching Activated Deactivated Closing © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

8 Application Lifecycle Demo

9 Performance

10 Application Performance
Startup is the chance to lose users We invested heavily in startup time for Windows Phone 8 Facebook app reduced from 12 seconds to 4 seconds Why? Execution environment improvements Compile in the cloud Core CLR improvements No work from developers – free (as in beer)!

11 Compile in the cloud Moving to CoreCLR brings Native Image Generator (NGEN) Code generation is expensive and time consuming on device Compile in the cloud NGEN’s your code when you submit Submit your XAP to marketplace just as you always have Code in XAP is NGEN’d and the XAP updated with compiled code What about my existing app? 7.1/7.8 apps are NGEN’d so Windows Phone 8 gets compiled version Original 7.1 apps is kept for download to 7.1 devices

12 Performance is as much an art as it is a science
Users care about perceived performance not benchmarks Key Performance Indicators How often you use the app really impacts your feel for performance 4 seconds is still too long for the app you use all the time Perception is impacted by context switching Even if your app starts super fast if the user has to remember where they were it slows them down

13 Resuming applications
In 7.5 we allowed apps to be in a suspended state This is great but… Only get the benefit if you tap back or use the task switcher we resumed the apps Task switcher isn’t a feature that every user will use

14 Multitasking

15 Multitasking on Windows Phone
Build 2013 9/10/2018 Multitasking on Windows Phone Windows Phone 7 Tombstoning Run Under Lock Notifications Windows Phone 7.5 Fast App Switching Background Audio Playback Generic Background Agents Windows Phone 8 VoIP Continuous Background Execution Fast App Resume Evolution of Multitasking © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

16 What is Fast App Resume? Build 2012 9/10/2018
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

17 Fast App Resume UX Resume previous experience for Primary tile
Build 2012 9/10/2018 Fast App Resume UX Resume previous experience for Primary tile when previously launched via Primary tile Start fresh for Deep Links when previously launched via Primary tile or a different Deep Link Don’t block OnBackKeyPress this is how users close your app © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

18 Fast App Resume Basics “Replace” is the default activation policy
Build 2012 9/10/2018 Fast App Resume Basics “Replace” is the default activation policy Opt-in to “Resume" via manifest setting <DefaultTask Name="_default" NavigationPage="MainPage.xaml" ActivationPolicy="Resume" /> Apps are still suspended or tombstoned © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

19 Fast App Resume In The Real World

20 Backstack – Do nothing Build 2012 9/10/2018
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

21 Backstack – Clear page stack
Build 2012 9/10/2018 Backstack – Clear page stack © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

22 Backstack – Clear page stack
Build 2012 9/10/2018 Backstack – Clear page stack Reset: Clear the page stack © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

23 Backstack - Cancel navigation
Build 2012 9/10/2018 Backstack - Cancel navigation © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

24 Backstack - Cancel navigation
Build 2012 9/10/2018 Backstack - Cancel navigation Reset: Cancel navigation © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

25 Fast App Resume Code Demo

26 Fast Resume Takeaway Main Tile: Resume!
Build 2012 9/10/2018 Fast Resume Takeaway Main Tile: Resume! Deep Links: Clear the back stack OnBackKeyPress: Do not block Test relaunch: between primary tile and deep links Don’t forget Tombstoning! © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

27 Integrating with Windows Phone

28 App Launching with URI and File Association
URI Association First PDC 1996 (the PDC with Steve Jobs!) Ability to register a custom URIs for your app skype:Call?UserID=thomasfennel – starts a conversation with me in Skype fb:Profile?UserName=thomasfennel – brings up my profile in Facebook Allows for browser integration Allows for rich integration between apps File Association Register your own file type Go to Sean McKenna’s Session (2-212) 2PM

29 Uri Associations… fandango:ShowTheater?ID=RegalIssaquah9

30 Tile Templates and Tile Sizes
Windows Phone 8 supports three Tile templates Flip – flips from front to back (similar to the WP 7.1 Tile template) Iconic – clean iconic layout designed to reflect Windows Phone design principles Cycle – cycles through up to nine images 30

31 Lock Screen on Windows Phone 8
Your app can show detailed status on the lock screen Your app can show quick status (icon and count) Your app can update the background image

32 Lock: dynamic wallpapers – how it works
Activate via Lock+Wallpaper CPL or within app Update the wallpaper When the app is running Using a background agent New WinRT APIs Go to my session (2-206) 11.30AM

33 Enterprise

34 Enterprise Device management App deployment
Enroll device with management server (inTune etc) Set policies to be applied and updated Automatically keep apps updated App deployment No need to deploy apps into Windows Phone Store Deploy using the technology that makes sense for your company Apps signed by you are deployable via web, or app

35 Why Enterprise deployment matters to you
Flexible deployment allows for considerable benefits Testing apps Uses company hub to distribute latest builds of your app to you testers Beta apps in the marketplace work great but not suited to daily builds & SD card deployment allow for simplicity With great power comes great responsibility…

36 Summary Significant application runtime improvements
Fast App Resume helps every app – go do it! Multitasking improvements enable key new app experiences Live Tiles provide significant user experience advances Lockscreen and notifications allows you to build deeper integration Enterprise deployment allows for considerable flexibility

37 Wednesday Thursday Friday 09:00 Keynote PH 2-222 WP Networking Peter Torr North 134 09:30 10:00 10:30 PH 2-211 Using Native in your apps Tim Laverty South 102 PH 2-216 WP Dev Best Practices Stefan Wick 11:00 11:30 PH 2-201 Intro to WP Dev Sam George PH 2-202 WP Design for Dev Corrina Black North 135 PH 2-206 WP Tiles, Lock, Notifications Thomas Fennel 12:00 PH 2-205 WP: MVVM in Practice Matthias Shapiro 12:30 13:00 13:30 14:00 PH 2-204 WP App Foundation PH 2-215 Build for Both Win 8 and WP8 Matt Hidinger PH 2-212 WP Cross App Comms Sean McKenna South 222 PH 2-220 WP Map Apps Mike O’Malley 14:30 15:00 15:30 PH 2-210 WP Camera app Berthier Lemieux PH 2-213 Maximize Revenue Bernardo Zamora PH 2-219 Story of Nokia Music from WP to Win 8 Matthew Cooper 16:00 16:30 17:00 PH 2-207 WP Game Basics Joao Raza South 304 PH 2-208 WP UI in XAML Shawn Oster WP Middleware JC Cimetiere North 132 PH 2-221 WP Low Memory Andrew Whitechapel PH 2-218 WP Contest Panel Panel North 123 17:30

38 Developer resources NEWS & UPDATES MSDN DOCS TRAINING CONTENT Design
Develop Test Publish Samples NEWS & UPDATES Portal Blog Channel 9 Twitter TRAINING CONTENT Absolute Beginners Jump Start Design Boot Camp Training Kit

39 9/10/ :42 PM Required Slide *delete this box when your slide is finalized Your MS Tag will be inserted here during the final scrub. Evaluate this session Scan this QR code to evaluate this session and be automatically entered in a drawing to win a prize! © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.

40


Download ppt "Windows Phone 8 Application Foundation"

Similar presentations


Ads by Google