Transcript

Session 2

Daryl Rudolph

Session II Agenda

• Sensors and Location• Web Services

• Azure• Rest• Odata

• Data binding / Sample Data• Isolated Storage• Data Roaming

Sensors and Location

Know your surroundings

Opportunities for sensor and location apps

• Make user experiences more relevant to the user’s location

• Enhance apps by adapting to the surrounding environment

• Every app can use simple sensor gestures• Easily create casual games and apps that use

sensors• Use sensor fusion to implement cutting edge apps

Sensor Fusion inputs and outputs (9-Axis)

Pass-Through

Accelerometer

3D Acceleromete

r

3D Gyro

3D Magnetomete

r

Sensor Fusion

Gyro

Compass

Inclinometer

Device Orientation

Windows.Devices.Sensors Namespace

Accelerometer

Gyro

Light Sensor

Raw Sensor Data

Inclinometer

Device Orientation

Compass

Sensor Fusion Data

Intermediate motion sensor scenarios

• Casual games• Labyrinth: Accelerometer• Gyro for twisting response

Basic app scenarios for sensors

RotateShake Flip

Light-aware apps – render for lighting

Dark

Indoors

Outdoors

Demo

NO DEMO Unless you have a sensor enabled laptop.Using Location in your application

LocationWhere am I??

Location scenarios

• Location• Search points of interest (POI)• Geo-tag photos and other content• Navigation• Location aware notifications

• weather, news , sports, coupons

• Many others…

Declare the need for Geolocation

Location-based user experience

Demo

Where am IUsing Location in your application

Communications and Data

Services, Isolated Storage, Data Roaming

DevicesSensor

sGeolocatio

nPortabl

eNFC

Communications & DataContracts

XML

Web

SMSNetworking

Notifications

Local & Cloud Storage

Streams

Background

Transfer

User InterfaceHTML5/

CSSXAML DirectX Controls

InputAccessibili

tyPrinting

Data Binding

TilesSVG

Windows 8 style application APIs

FundamentalsApplication

ServicesAuthenticati

onCryptograph

yGlobalizati

onMemory

ManagementThreading/Timers

MediaVisual Effects

Playback

PlayTo

Capture

DevicesSensor

sGeolocatio

nPortabl

eNFC

Communications & DataContracts

XML

Web

SMSNetworking

Notifications

Local & Cloud Storage

Streams

Background

Transfer

User InterfaceHTML5/

CSSXAML DirectX Controls

InputAccessibili

tyPrinting

Data Binding

TilesSVG

Windows 8 style application APIs

FundamentalsApplication

ServicesAuthenticati

onCryptograph

yGlobalizati

onMemory

ManagementThreading/Timers

MediaVisual Effects

Playback

PlayTo

Capture

Data Options In Detail• WCF Custom Services

• SOAP• REST

• Web Api• Part of MVC 4

• Local• Windows.Storage• SQLite

Demo

Show me the dataPulling a Rest Service into your application

Sample DataShow me something.

Demo

Show me the dataPulling a Rest Service into your application

Great apps deliver a continuous experience for your

customers as they switch between apps and PCs

Many ways to enable a continuous experience on one PC

Registry

Your Custo

m Format

Settings XML

and .ini Files

Cookies

Across many PCs?

Registry

Your Custo

m Format

Settings XML

and .ini Files

Cookies

Continuity across many PCs: today

• Register a domain• Setup your services and infrastructure• Figure out security and user management• Build sync infrastructure• Scale your service for millions of users

Or…

appData.roamingSettings.values[“restaurant”] = “Mario’s”;

App data vs. user data

User data

Documents

Photos Music Videos

App data

Settings

FilesSession State

Local Cache

One PC vs. many PCs

Local

Large caches for offline use

Offline storage for HTML5 based apps

Temporary data and device specific configuration data

Roaming

Small, key-value pairs for app settings

User context like where they left off in a book or video

Small configuration files in your custom format

How roaming works

LocalStora

ge

• Data syncs for the user’s Microsoft account

• App uses data normally

Demo

Saving to Isolated StorageFolder it

Hands-On Lab 2

Extending the Application

top related