44

Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Embed Size (px)

Citation preview

Page 1: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model
Page 2: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Session Code

Windows Phone Multitasking & Live Tiles

Larry LiebermanProduct Manager, Windows Phone DeveloperMicrosoft Corporation

Page 3: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Key takeaways for Windows Phone

Broad set of multitasking features

Balances user experience with phone health

Familiar .NET programming model

Page 4: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Windows Phone Multitasking Block Diagram

Resource Management

Built-in services

3rd-party services

Alarms & Reminder

s

File Transfers

Background Audio

Periodic Execution

Fast A

pp

Sw

itchin

g

Page 5: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Harmony

UX

Health Battery-Friendly

Network-Aware

Hardened Services

Delightful and Responsive UX

Never Regret Installing Apps

Integrated Experiences

Page 6: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

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: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

demo

Fast Application Switching

Page 8: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

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: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

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: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Demo

Alarms and Reminders

Page 11: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Alarms and Reminders - Overview

Same UX as built-in alarms and reminders

Deep link back into the application

Efficient implementation based on OS services

Page 12: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Demo

Background Transfer Service

Page 13: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Background Transfer Service - Limits

1 2 3 4 5

Page 14: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Background Transfer Service - Limits

5 MB

20 MB

20 MB

100 MB

Unlimited

Page 15: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Background Transfer Service - Overview

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

Persists across reboots

Page 16: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Demo

Live Tiles

Page 17: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Live Tiles - Overview

Pin multiple tiles to Start

New flip animation with additional contentUpdate three ways: push, schedule, or local API

Page 18: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

demo

Background Agents

Page 19: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

End-to-End Architecture

System Service

sISO StoreCloud

DifferentProcesses

Logic

UX

MyApp.dll

Application OS

Logic

MyAppAgent.dll

Single App

DeveloperMyApp Solution

MyApp Project

MyAppAgent Project

WMAppManifest

Page 20: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

code

Background Agents

Page 21: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Background Agents – Basic Functionality

Allowed Restricted

Tile updatesToastsLocationNetworkingStorageMost framework APIs

MicrophoneCameraSensorsGraphicsAudioAll XNA libraries

Page 22: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Background Agents – Two Flavors

Periodic AgentResource-Intensive Agent

Runs every 30 minutes

Any network

connection

Runs for 25 seconds

Used for location, data

sync, etc.

Runs on external power

Non-cell network

connection

Runs for 10 mins,

recurring

Used 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: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Background Agents - Overview

Separate resource-constrained process

Managed by the OS to maintain phone health

User stays in control via system settings

Familiar .NET programming model

Page 24: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

demo

Background Audio

Page 25: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Background Audio Architecture

Zune Playbac

kISO StoreCloud

UX

MusicApp.dll

LogicMusicAgent.d

ll

20/30

West End Girls Pet Shop Boys

All playback logic lives in the agent!

Page 26: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

code

Background Audio

Page 27: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

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: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Recap

Broad set of multitasking features

Balances user experience with phone health

Familiar .NET programming model

Page 29: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Health

UX

Page 30: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Related Content

Page 31: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Resources

Page 32: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Feedback

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

Thank you!

Page 33: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

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: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model
Page 35: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Session Code

Title of Presentation

NameCompany

NameCompany

Page 36: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Session Code

Title of Presentation

Name Company

Name Company

Name Company

Page 37: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Contents

Page 38: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Slide Title

First levelSecond level

Third level Fourth level

Fifth level

Page 39: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

PowerPoint Guidelines

Font, 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: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Bar Chart Example

Category 1

Category 2

Category 3

Category 4

0

1

2

3

4

5

Series 1Series 2Series 3

Page 41: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

demo

Demo Title

Name

Page 42: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

video

Video Title

Page 43: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

announcement

Announcement Title

Page 44: Broad set of multitasking features Balances user experience with phone health Familiar.NET programming model

Code Sample

Get-Process –computername srv1

class TechEdProgram{

public static void Main(){

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

}