windows phone multitasking & live tiles

44

Upload: sook

Post on 23-Feb-2016

46 views

Category:

Documents


0 download

DESCRIPTION

Session Code. Product Manager, Windows Phone Developer. Microsoft Corporation. Windows Phone Multitasking & Live Tiles. Larry Lieberman. Key takeaways for Windows Phone. Broad set of multitasking features. Balances user experience with phone health. Familiar .NET programming model. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Windows Phone  Multitasking & Live Tiles
Page 2: Windows Phone  Multitasking & Live Tiles

Session Code

Windows Phone Multitasking & Live Tiles

Larry LiebermanProduct Manager, Windows Phone DeveloperMicrosoft Corporation

Page 3: Windows Phone  Multitasking & Live Tiles

Key takeaways for Windows Phone

Broad set of multitasking featuresBalances user experience with phone healthFamiliar .NET programming model

Page 4: Windows Phone  Multitasking & Live Tiles

Windows Phone Multitasking Block Diagram

Resource Management

Built-in services

3rd-party services

Alarms & Reminder

sFile

TransfersBackground Audio

Periodic Execution

Fast App Switching

Page 5: Windows Phone  Multitasking & Live Tiles

Harmony

UX

Health Battery-Friendly

Network-Aware

Hardened Services

Delightful and Responsive UX

Never Regret Installing Apps

Integrated Experiences

Page 6: Windows Phone  Multitasking & Live Tiles

Multitasking and Phone Health

Monitor resource usage

Align with system and user activity

Balance foreground and background

Processing on demand

New OS services

Page 7: Windows Phone  Multitasking & Live Tiles

demo

Fast Application Switching

Page 8: Windows Phone  Multitasking & Live Tiles

Fast App Switching Support

Keeps user in control

Compatible with 7.0

apps

Suspends application

threads

Load or refresh state*

Compileand test

for Mango

Reattach resources*

* Only if needed.

OS

Page 9: Windows Phone  Multitasking & Live Tiles

Application Lifecycle

Save state but do not discard it

Reload / refresh state only if needed

Application is resident in memory; system detaches resources and pauses threads

Tombstoned

DeactivatedDormant

RunningActivated

Page 10: Windows Phone  Multitasking & Live Tiles

Demo

Alarms and Reminders

Page 11: Windows Phone  Multitasking & Live Tiles

Alarms and Reminders - Overview

Same UX as built-in alarms and remindersDeep link back into the applicationEfficient implementation based on OS services

Page 12: Windows Phone  Multitasking & Live Tiles

Demo

Background Transfer Service

Page 13: Windows Phone  Multitasking & Live Tiles

Background Transfer Service - Limits

1 2 3 4 5

Page 14: Windows Phone  Multitasking & Live Tiles

Background Transfer Service - Limits

5 MB

20 MB

20 MB

100 MB

Unlimited

Page 15: Windows Phone  Multitasking & Live Tiles

Background Transfer Service - Overview

Balances functionality with phone health and user costSimplifies download management in appsEfficient implementation based on OS servicesPersists across reboots

Page 16: Windows Phone  Multitasking & Live Tiles

Demo

Live Tiles

Page 17: Windows Phone  Multitasking & Live Tiles

Live Tiles - Overview

Pin multiple tiles to StartNew flip animation with additional contentUpdate three ways: push, schedule, or local API

Page 18: Windows Phone  Multitasking & Live Tiles

demo

Background Agents

Page 19: Windows Phone  Multitasking & Live Tiles

End-to-End Architecture

System Service

sISO StoreCloud

DifferentProcesses

LogicUX

MyApp.dll

Application OS

Logic

MyAppAgent.dll

Single App

DeveloperMyApp Solution

MyApp Project

MyAppAgent Project

WMAppManifest

Page 20: Windows Phone  Multitasking & Live Tiles

code

Background Agents

Page 21: Windows Phone  Multitasking & Live Tiles

Background Agents – Basic Functionality

Allowed RestrictedTile updatesToastsLocationNetworkingStorageMost framework APIs

MicrophoneCameraSensorsGraphicsAudioAll XNA libraries

Page 22: Windows Phone  Multitasking & Live Tiles

Background Agents – Two Flavors

Periodic Agent Resource-Intensive Agent

Runs every 30 minutesAny network connectionRuns for 25 secondsUsed for location, data sync, etc.

Runs on external powerNon-cell network connectionRuns for 10 mins, recurringUsed for daily tasks, large data syncs, etc.

...when battery level is > 20% and battery saver is not on ...when battery level is > 90%

Page 23: Windows Phone  Multitasking & Live Tiles

Background Agents - Overview

Separate resource-constrained processManaged by the OS to maintain phone healthUser stays in control via system settings

Familiar .NET programming model

Page 24: Windows Phone  Multitasking & Live Tiles

demo

Background Audio

Page 25: Windows Phone  Multitasking & Live Tiles

Background Audio Architecture

Zune Playbac

kISO StoreCloud

UXMusicApp.dll

LogicMusicAgent.d

ll

20/30

West End Girls Pet Shop Boys

All playback logic lives in the agent!

Page 26: Windows Phone  Multitasking & Live Tiles

code

Background Audio

Page 27: Windows Phone  Multitasking & Live Tiles

Background Audio Playback - Overview

HTML 5 Audio Playback in Internet ExplorerTrack-based playback for standard formatsBuffer-based playback for custom formatsGuaranteed resources for continuous playback

Page 28: Windows Phone  Multitasking & Live Tiles

Recap

Broad set of multitasking featuresBalances user experience with phone healthFamiliar .NET programming model

Page 29: Windows Phone  Multitasking & Live Tiles

Health

UX

Page 30: Windows Phone  Multitasking & Live Tiles

Related Content

Page 31: Windows Phone  Multitasking & Live Tiles

Resources

Page 32: Windows Phone  Multitasking & Live Tiles

Feedback Your feedback is very important! Please complete an evaluation form!

Thank you!

Page 33: Windows Phone  Multitasking & Live Tiles

Questions? Session Code Speaker Name

Title Email Blog …

You can ask your questions at “Ask the expert” zone within an hour after end of this session

Page 34: Windows Phone  Multitasking & Live Tiles
Page 35: Windows Phone  Multitasking & Live Tiles

Session Code

Title of Presentation

NameCompany

NameCompany

Page 36: Windows Phone  Multitasking & Live Tiles

Session Code

Title of Presentation

Name Company

Name Company

Name Company

Page 37: Windows Phone  Multitasking & Live Tiles

Contents

Page 38: Windows Phone  Multitasking & Live Tiles

Slide Title First level

Second levelThird level

Fourth level Fifth level

Page 39: Windows Phone  Multitasking & Live Tiles

PowerPoint GuidelinesFont, size, and color for text have been formatted for you in the Slide MasterUse the color palette shown belowHyperlink color: www.microsoft.com

Sample FillSample FillSample Fill

Sample FillSample FillSample Fill

Page 40: Windows Phone  Multitasking & Live Tiles

Bar Chart Example

Category 1

Category 2

Category 3

Category 4

012345

Series 1Series 2Series 3

Page 41: Windows Phone  Multitasking & Live Tiles

demo

Demo Title Name

Page 42: Windows Phone  Multitasking & Live Tiles

video

Video Title

Page 43: Windows Phone  Multitasking & Live Tiles

announcement

Announcement Title

Page 44: Windows Phone  Multitasking & Live Tiles

Code Sample Get-Process –computername srv1

class TechEdProgram{

public static void Main(){

System.Console.WriteLine("Hello, Tech·Ed!");}

}