Windows Phone 8 Application Foundation

Slides:



Advertisements
Similar presentations
WINDOWS PHONE FIRST UP/ ALL UP Nick Randolph (Built to Roam) Dave Glover (Microsoft) SESSION CODE: #WPH202 (c) 2011 Microsoft. All rights reserved.
Advertisements

1/10/2018 9:33 PM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
TechEd /11/2018 6:16 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft Ignite /10/2018 3:38 AM
Modern Application Lifecycle Management
Build for both: Windows and Windows Phone
Windows Phone 8 Tiles, Lock Screen, and Notifications
WebView: Bringing the web to your app
TechEd /26/2018 3:42 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Build /4/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft Ignite /18/2018 8:30 PM BRK2065
Windows Azure Jason Olson, Program Manager 4-142
TechEd /8/ :20 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /9/ :26 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
9/18/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
9/18/2018 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Office Power Hour New developer APIs and features for Apps for Office
Windows Phone 8 Application Model
Windows Phone multitasking
TechEd /14/2018 6:26 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
0 to 60: Developing Apps for Microsoft Office 2013
Building modern web applications with Visual Studio and Web Essentials
Bring existing desktop apps to UWP with the Desktop Bridge
TechEd /24/2018 5:46 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Visual Studio 2013 for web developers
Tooling and Diagnostics
Build /2/ The future of Azure devops: Building and managing cloud applications lifecycle across your teams Bradley Millington Program.
TechEd /2/2018 5:42 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /4/2018 3:19 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Search: integrating into the Windows 8 search experience
TechEd /6/2018 8:16 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /7/ :16 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Quality & Performance for XAML Apps
TechEd /28/ :27 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /11/ :21 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Windows Phone: Developer Best Practices and How to Maximize Performance
TechEd /18/2019 2:43 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Building Awesome Metro style HTML apps in Blend
Integrating with Windows 8 Experiences
TechEd /22/2019 9:22 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Build /23/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Platform for Metro style Apps
TechEd /25/ :09 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Building Business Applications in LightSwitch
Pushing Data to and from the Cloud with SQL Azure Data Sync
Using Windows Runtime and SDK to build Metro style apps
TechEd /4/2019 3:19 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Build /10/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /7/2019 1:14 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
What's New in Visual Studio & Blend for XAML Developers
Brandon Bray Principal Group Program Manager Microsoft Corporation
TechEd /11/ :25 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Using tiles and notifications
TechEd /23/2019 9:23 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Windows Phone Developer Platform
Build /4/ Diagnosing issues with Windows Phone 8.1 JavaScript apps using Visual Studio Andy Sterland Senior Program
TechEd /27/2019 5:37 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /5/2019 4:36 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Build /20/2019 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /18/ :51 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /30/2019 7:18 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
What’s New in the Visual Studio 2013 IDE
Build /24/ What's new for Azure developers in Visual Studio 2013 update 2 and Azure SDK 2.3 Dan Fernandez Principal PM
TechEd /30/ :28 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
TechEd /5/2019 2:08 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
TechEd /21/2019 9:49 AM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Presentation transcript:

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

Agenda slide App Lifecycle Performance Multitasking Phone Integration Enterprise

Application Lifecycle

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

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

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.

Application Lifecycle Demo

Performance

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)!

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

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

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

Multitasking

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.

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.

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.

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.

Fast App Resume In The Real World

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.

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.

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.

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.

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.

Fast App Resume Code Demo

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.

Integrating with Windows Phone

App Launching with URI and File Association URI Association First introduced @ 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) Friday @ 2PM

Uri Associations… fandango:ShowTheater?ID=RegalIssaquah9

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

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

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) Thursday @ 11.30AM

Enterprise

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, email or app

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 Email & SD card deployment allow for simplicity With great power comes great responsibility…

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

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

Developer resources NEWS & UPDATES MSDN DOCS TRAINING CONTENT Design http://aka.ms/wp8devdesign Develop http://aka.ms/wp8devdoc Test http://aka.ms/wp8testing Publish http://aka.ms/wp8publishing Samples http://aka.ms/wp8samples NEWS & UPDATES Portal http://dev.windowsphone.com Blog http://wpdev.ms/developerblog Channel 9 http://wpdev.ms/insidewp Twitter http:/twitter.com/wpdev TRAINING CONTENT Absolute Beginners http://wpdev.ms/beginvids Jump Start http://aka.ms/wp8js Design Boot Camp http://aka.ms/wp8designbootcamp Training Kit http://aka.ms/wp8hol

9/10/2018 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.