WP7 Architecture overview

47
Microsoft | Developer Evangelist WP7 Architecture overview Gowtham Prasad K N Partner Technical Consultant Amar Nityananda

description

WP7 Architecture overview presented at Mobile Monday Bangalore March 2011 event.

Transcript of WP7 Architecture overview

Page 1: WP7 Architecture overview

Microsoft |

Developer Evangelist

WP7 Architecture overview

Gowtham Prasad K N

Partner Technical Consultant

Amar Nityananda

Page 2: WP7 Architecture overview

Microsoft

Agenda

Application Platform + Framework & Tools

Strategy & Philosophy

Architecture at glance

Q & A

Hands-On: Building LBS App on WP7

WP7 Architecture overview + Tools and IDE's for WP7

Page 3: WP7 Architecture overview

Microsoft

DESIGN: END USER COMES FIRST

PLATFORM: RICHER, DEEPER, EASIER APPS

HARDWARE:FASTER TO MARKET, LESS HEAVY LIFTING

Changing our GameA new approach with WP7

Page 4: WP7 Architecture overview

Microsoft

INTEGRATED EXPERIENCES

SMART DESIGN

Page 5: WP7 Architecture overview

Microsoft

Page 6: WP7 Architecture overview

Microsoft

© 2010 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.

Integrated Experiences

Page 7: WP7 Architecture overview

Microsoft |

Page 8: WP7 Architecture overview

Microsoft |

Page 9: WP7 Architecture overview

Microsoft Windows Phone Microsoft confidential.

DEMO

Page 10: WP7 Architecture overview

Microsoft

APPLICATION PLATFORM

Page 11: WP7 Architecture overview

Microsoft Windows Phone Microsoft confidential.

Platform goals

A wide variety of thousands of compelling apps and games

One stack of frameworks that can be leveraged across multiple devices, tied via cloud

Financial and otherwise

End User Customization Cloud enablementDeveloper profit

Page 12: WP7 Architecture overview

Microsoft

Platform components

Code that executes on the client

Tools used locally

Code that executes in the cloud

Tools in the cloud

Clie

ntSe

rver

Page 13: WP7 Architecture overview

Microsoft

Platform componentsClie

ntSe

rver

Sensors Media Data

Xbox LIVE Notifications

.NET Framework managed code sandbox

Location

Phone

Phone Emulator

Samples Documentation

Guides Community

Packaging and Verification Tools

Runtime Tools

Cloud PortalNotifications

Location Identity Feeds

MapsSocial

App Deployment Registration

Validation

Certification

Publishing

Marketplace

MO and CC Billing

Business Intelligence

Update Management

Page 14: WP7 Architecture overview

Client runtime & frameworks

Page 15: WP7 Architecture overview

Microsoft

Silverlight

Rapid creation of visually stunning

apps

Modern application UI framework &

runtime

METRO themed UI controls, defined in XAML

XAML, C#, HTML & JavaScript

Rich media support

500,000 developers spanning Windows and Web

Page 16: WP7 Architecture overview

Microsoft

XNA Framework

Rapid creation of multiscreen 2D and 3D games

High performance game

framework

Rich content pipeline

Traditional update/draw/present frame loop model

Page 17: WP7 Architecture overview

Windows Phone Microsoft confidential.

Common capabilities Input

Touch Hardware buttons

Media Digital media

capture & playback Media library access

Data Isolated storage LINQ (Objects &

XML)

Windows Communication Foundation SOAP & REST

services Phone access

Sensors Launchers &

choosers Cloud services

Notifications Location & mapping Xbox LIVE

Page 18: WP7 Architecture overview

Microsoft

WP7 Architecture

Page 19: WP7 Architecture overview

Microsoft

Software Architecture

App Model

Cloud Integration

Services

Hardware Foundation

UI Model

WP7 Architecture snapshot

Page 20: WP7 Architecture overview

Microsoft

Consistent hardware foundation

SensorsA-GPS, Accelerometer, Compass, Light

Proximity

Capacitive Touch4 or more touch points

Camera5 Megapixels or more

MultimediaCommonly detailed specs, hardware

accelerated CODECs

CPUARM v7, Cortex/Scorpion required

GPUDirectX 9 Hardware Accelerated

80

0 Q

VG

A4

80

HV

GA

480 QVGA320 HVGA

Page 21: WP7 Architecture overview

Windows Phone Microsoft confidential.

Software Architecture

App Model

Cloud Integration

Services

Hardware Foundation

UI Model

Page 22: WP7 Architecture overview

Windows Phone Microsoft confidential.

KernelHardware BSP

App Model UI Model Cloud Integration

Applications

App managementLicensingChamber isolationSoftware updates

Shell frame Session managerDirect3DCompositor

Xbox LIVEBingLocationPush notificationsWindows Live ID

Your App UI and logic

A-GPS Accelerometer Compass Light ProximityMedia Wi-Fi Radio Graphics

SecurityNetworkingStorage

Frameworks

Silverlight XNAHTML/

JavaScriptCLR

Hardware Foundation

Software Architecture

Page 23: WP7 Architecture overview

Windows Phone Microsoft confidential.

Windows Phone 7 SeriesFrameworks Details

Common Base Class Library

Collections ComponentModel Configuration

DiagnosticsReflection IO

Security Threading

Runtime Resources Globalization TextLocation Net

ServiceModel Linq

Application Object

Silverlight Presentation and Media

XNA Frameworks for Games

Windows Phone Frameworks

NavigationShapes Markup Media

Controls Drawing IsolatedStorage

AudioMedia GraphicsInput

Drawing GamerServices

Content

PhoneApplicationPage

PushNotification

WebBrowserControl

SensorsPhoneApplicationFra

me

CameraDevice

IntegrationLaunchers &

ChoosersWindows Phone

Controls

Page 24: WP7 Architecture overview

Microsoft

Software Architecture

App Model

Cloud Integration

Services

Hardware Foundation

UI Model

Page 25: WP7 Architecture overview

Microsoft

App Model: ConceptsApplicationUniquely identifiable, licensable and serviceable software product packaged as a XAP

Application DeploymentSteps include Ingestion, Certification and Signing

Application licenseCrypto-verifiable object issued to grant rights to

an application

Windows Phone

Marketplace

Windows Phone

Marketplace

Page 26: WP7 Architecture overview

Microsoft

App Development & Testing

Packaging & Verification Toolsmyapp.xap

Windows Phone device

Windows PhoneEmulator

Phone EmulatorSamples DocumentationGuides Community

Packaging and Verification Tools

Tools

Page 27: WP7 Architecture overview

Microsoft Windows Phone Microsoft confidential.

App & game deployment

Develop & Debug

Submit& Validate

Certify & Sign

Windows Phone Application Deployment Service

Marketplace

Page 28: WP7 Architecture overview

Microsoft

App Lifecycle

+Windows

Phone Marketplace

Phone only installs .xap packages signed by marketplace

Phone handles all aspects of .xap installation based on the manifestIndividual apps cannot make arbitrary changes to the phone during installation

Users control install, update and uninstall, while the marketplace controls revocationIndividual apps do not control their own lifecycle on the phone

Page 29: WP7 Architecture overview

Microsoft

Philosophy: 3 Screens and Cloud

Common Base Class Library

Silverlight Presentation and Media

Silverlight Presentation and Media

XNA Frameworks

Windows Phone 7 Series

Frameworks

XNA Frameworks

XNA Frameworks

Cloud

Notification Service

Location Service

Windows Phone

Windows Desktop

Xbox

Page 30: WP7 Architecture overview

Microsoft Windows Phone Microsoft confidential.

DEMOBasic Application Development

Page 31: WP7 Architecture overview

Microsoft

Software Architecture

App Model

Cloud Integration

Services

Hardware Foundation

UI Model

Page 32: WP7 Architecture overview

Microsoft

UI Model: Concepts

ApplicationUI and logic for functionality exposed through pages

PageA single screen of user interaction elements

SessionAn ordered workflow of user interactions spanning applications

Page 33: WP7 Architecture overview

Microsoft

Active sessions

PicturesTake a look at recent photos

PeopleLook up the status

for a contact

PicturesContinue looking at recent photos

UI Navigation: Example

Page 34: WP7 Architecture overview

Microsoft

Retained in shell frame to support resuming paused

sessions

Discarded while the session is paused

UI and State Management: Concepts

Page UIDescribes the visual

appearance of a page

Page StateContains data that

describes an instance of a page,

analogous to browser cookie

Page 35: WP7 Architecture overview

Microsoft

Apps restarted and UI rehydrated as the user

navigates thru the phone

UI and State Management: Example

Running Applications

Dehydrated and rehydrated on

demand from saved state

Shell FrameMonitors resource

usage to decide when to pause

sessions

Page 36: WP7 Architecture overview

Microsoft

Graphics Composition

App Bar

SIP

App PageStart

Experience

Incoming Call

System TrayNotification

Volume

Direct3D Surface

Shell frame composes all UI into a single screen

Central page management enables cross app UI transitions and other effects

Page 37: WP7 Architecture overview

Microsoft Windows Phone Microsoft confidential.

DEMONavigation + Tombstoning

Page 38: WP7 Architecture overview

Microsoft

Software Architecture

App Model

Cloud Integration

Services

Hardware Foundation

UI Model

Page 39: WP7 Architecture overview

Microsoft

Cloud services

App

Cloud client

services

Frameworks

Your web service

Custom web serviceExisting web serviceMicrosoft web services

Push Locate

Page 40: WP7 Architecture overview

Microsoft

Location & maps

App

Location client

service

Frameworks

Radio

Wi-Fi A-GPS

Page 41: WP7 Architecture overview

Microsoft

Push Notification Service

Built-in support for efficient, battery-aware mobile push notifications

Managed APIs for notification-driven interaction with existing Web 2.0 sites

Windows Phone Your Web ServiceCustom Web Service

Existing Web Services

Microsoft Services

Push client service

Microsoft.Phone.Notification Notification Service

Page 42: WP7 Architecture overview

Microsoft

Raw Notification

Seattle, WA: Sunny and 85 degrees

New photos online!

14

Push notification serviceTile Notification

Toast notification

Page 43: WP7 Architecture overview

Microsoft

Authenticated Xbox LIVE calls

Game specific web requests

Windows Phone

XBOX Live

Game Foundation handles auth, caching, & partial connectivity for Xbox LIVE

Third party token allows secure integration with game-specific services

Your Web ServiceCustom Web Service

Microsoft Services

Gamer Services APIs for Xbox LIVE Profiles, Achievements, and Leaderboards

Game Foundation

XNA

Page 44: WP7 Architecture overview

Microsoft

Call to Action

Get started!! Download the tools! Read and understand the design guidelines

Start developing Apps!

Resources: http://create.msdn.com/en-US/ Team blog:

http://windowsteamblog.com/blog/wpdev

Page 45: WP7 Architecture overview

Microsoft

A different kind of phone

Designed for life in motion

So you can build integrated experiences

& profit from it

Page 46: WP7 Architecture overview

Microsoft

Q & A

Page 47: WP7 Architecture overview

Microsoft

© 2010 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.