Working with Windows Phone sensors, gps and maps

Preview:

DESCRIPTION

These contain the session I conducted at a Microsoft Sri Lanka session for their partners.

Citation preview

Working with Device

Sensors, GPS and MapsMALIN DE SILVA

SHAREPOINT SPECIALIST

EXILESOFT

Overview

Location

Maps

Device Sensors

Accelerometer

Compass

Gyroscope

Inclinometer

Location

Location improves experience

Facebook

Foursquare

Map apps

Longitude and latitude coordinates

Enable ‘Location’ under the capabilities

Can define accuracy levels

Rich emulator support

DemonstrationHOW TO WORK WITH

LOCATION SERVICES

Location: Running in the background

Examples

Location reminder

Location tracker

Runs 4 hours without user interaction

Battery saver and device memory issues

User disabling location

Another app starts running in background

Maps

Fully fledged Bing maps support

Need to have a Bing maps key

bingmapsportal.com

Location and address

Routes and directions

Integration with other apps for directions

Demonstration WORKING WITH BING MAPS

Device Sensors

Accelerometer

Gyrometer/ Gyroscope

Compass/ Magnometer

Inclinometer

Orientation Sensor

Ambient Light Sensor

Proximity Sensor

Device Sensors: Accelerometer

Acceleration caused by the

gravity or other external forces

Device rotation and motion

changes X, Y, Z values

Demonstration ACCELEROMETER

Device Sensors: Compass/ Magnometer

Returns a 2D heading with respect to magnetic north based on the

horizontal plane of the earth.

Should not be used in determining specific device orientation or for

representing anything in 3D space.

Some systems support both HeadingMagneticNorth and

HeadingTrueNorth.

Device Sensors: Gyrometer/ Gyroscope

Measures angular velocities along the X, Y, and Z

axes.

Do not concern with device orientation but device

rotating at different speeds.

Can suffer from noise in the data or a constant bias

along one or more of the axes.

Query the accelerometer to verify whether the

device is moving in order to determine if the

Gyrometer suffers from a bias

Device Sensors: Inclinometer

Work best with apps that care about how the device is situated in space.

Pitch and roll are derived by taking the accelerometer’s gravity vector

and by integrating the data from the gyrometer.

Yaw is established from magnetometer and gyrometer.

Device Sensors: Other Sensors

Orientation Sensor

Ambient Light Sensor

Proximity Sensor

Did we miss anything?

malindesilva@live.com

@Malind19

Malindesilva.net

Recommended