15
Working with Device Sensors, GPS and Maps MALIN DE SILVA SHAREPOINT SPECIALIST EXILESOFT

Working with Windows Phone sensors, gps and maps

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: Working with Windows Phone sensors, gps and maps

Working with Device

Sensors, GPS and MapsMALIN DE SILVA

SHAREPOINT SPECIALIST

EXILESOFT

Page 2: Working with Windows Phone sensors, gps and maps

Overview

Location

Maps

Device Sensors

Accelerometer

Compass

Gyroscope

Inclinometer

Page 3: Working with Windows Phone sensors, gps and maps

Location

Location improves experience

Facebook

Foursquare

Map apps

Longitude and latitude coordinates

Enable ‘Location’ under the capabilities

Can define accuracy levels

Rich emulator support

Page 4: Working with Windows Phone sensors, gps and maps

DemonstrationHOW TO WORK WITH

LOCATION SERVICES

Page 5: Working with Windows Phone sensors, gps and maps

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

Page 6: Working with Windows Phone sensors, gps and maps

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

Page 7: Working with Windows Phone sensors, gps and maps

Demonstration WORKING WITH BING MAPS

Page 8: Working with Windows Phone sensors, gps and maps

Device Sensors

Accelerometer

Gyrometer/ Gyroscope

Compass/ Magnometer

Inclinometer

Orientation Sensor

Ambient Light Sensor

Proximity Sensor

Page 9: Working with Windows Phone sensors, gps and maps

Device Sensors: Accelerometer

Acceleration caused by the

gravity or other external forces

Device rotation and motion

changes X, Y, Z values

Page 10: Working with Windows Phone sensors, gps and maps

Demonstration ACCELEROMETER

Page 11: Working with Windows Phone sensors, gps and maps

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.

Page 12: Working with Windows Phone sensors, gps and maps

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

Page 13: Working with Windows Phone sensors, gps and maps

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.

Page 14: Working with Windows Phone sensors, gps and maps

Device Sensors: Other Sensors

Orientation Sensor

Ambient Light Sensor

Proximity Sensor

Page 15: Working with Windows Phone sensors, gps and maps

Did we miss anything?

[email protected]

@Malind19

Malindesilva.net