Upload
vanessa-mathews
View
212
Download
0
Tags:
Embed Size (px)
Citation preview
Session Code
Windows Phone Multitasking & Live Tiles
Larry LiebermanProduct Manager, Windows Phone DeveloperMicrosoft Corporation
Key takeaways for Windows Phone
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
Harmony
UX
Health Battery-Friendly
Network-Aware
Hardened Services
Delightful and Responsive UX
Never Regret Installing Apps
Integrated Experiences
Multitasking and Phone Health
Monitor resource usage
Align with system and user activity
Balance foreground and background
Processing on demand
New OS services
demo
Fast Application Switching
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
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
Demo
Alarms and Reminders
Alarms and Reminders - Overview
Same UX as built-in alarms and reminders
Deep link back into the application
Efficient implementation based on OS services
Demo
Background Transfer Service
Background Transfer Service - Limits
1 2 3 4 5
Background Transfer Service - Limits
5 MB
20 MB
20 MB
100 MB
Unlimited
Background Transfer Service - Overview
Balances functionality with phone health and user costSimplifies download management in appsEfficient implementation based on OS services
Persists across reboots
Demo
Live Tiles
Live Tiles - Overview
Pin multiple tiles to Start
New flip animation with additional contentUpdate three ways: push, schedule, or local API
demo
Background Agents
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
code
Background Agents
Background Agents – Basic Functionality
Allowed Restricted
Tile updatesToastsLocationNetworkingStorageMost framework APIs
MicrophoneCameraSensorsGraphicsAudioAll XNA libraries
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%
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
demo
Background Audio
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!
code
Background Audio
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
Recap
Broad set of multitasking features
Balances user experience with phone health
Familiar .NET programming model
Health
UX
Related Content
Resources
Feedback
Your feedback is very important! Please complete an evaluation form!
Thank you!
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
Session Code
Title of Presentation
NameCompany
NameCompany
Session Code
Title of Presentation
Name Company
Name Company
Name Company
Contents
Slide Title
First levelSecond level
Third level Fourth level
Fifth level
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
Bar Chart Example
Category 1
Category 2
Category 3
Category 4
0
1
2
3
4
5
Series 1Series 2Series 3
demo
Demo Title
Name
video
Video Title
announcement
Announcement Title
Code Sample
Get-Process –computername srv1
class TechEdProgram{
public static void Main(){
System.Console.WriteLine("Hello, Tech·Ed!");}
}