Location Location support classes Maps Map support classes

Similar documents
Location Based Services

ANDROID APPS DEVELOPMENT FOR MOBILE GAME

Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website:

Lesson Plan 1 Introduction to Google Earth for Middle and High School. A Google Earth Introduction to Remote Sensing

The power of virtual globes for valorising cultural heritage and enabling sustainable tourism: NASA World Wind applications

Guiding Visually Impaired People with NXT Robot through an Android Mobile Application

DEVELOPING FOR GOOGLE GLASS

Track Trek. Final Project Submission

Introduction to Mobile Sensing Technology

A case study for the Exif file recorded by digital cameras of Canon and file management using Exif metadata. Hiroshi Maeno Canon Inc.

APPLICATIONS OF GPS. The Global Positioning System, while originally a military project, is considered a

CS 4518 Mobile and Ubiquitous Computing Lecture 7: Fragments, Camera Emmanuel Agu

GPS Waypoint Application

Produced by Mr B Ward (Head of Geography PGHS)

Accurate Coordinates Are Essential to Our Main Task!

Onboard Android Sensor Access

Location, Location, Location

Multi-sensory Tracking of Elders in Outdoor Environments on Ambient Assisted Living

Location Based Technologies

Upgrading Common Workflows from 10.2.x to 100.x with ArcGIS Runtime SDK for.net. Melanie Whalen & Lauren Boyd

Implementing Dijkstra s algorithm for vehicle tracking in adverse geographical condition.

Pervasive Systems SD & Infrastructure.unit=3 WS2008

GPS Position Sensor PS-2175

CONTENT RICH INTERACTIVE, AND IMMERSIVE EXPERIENCES, IN ADVERTISING, MARKETING, AND EDUCATION

A map says to you, 'Read me carefully, follow me closely, doubt me not.' It says, 'I am the Earth in the palm of your hand. Without me, you are alone

TEST YOUR SATELLITE NAVIGATION PERFORMANCE ON YOUR ANDROID DEVICE GLOSSARY

Federation of Genealogical Societies. GPS Locating Cemeteries Making Cemeteries Easy to Find. by Duane V. Kniebes.

PlanIt! for Photographers ALL-IN-ONE PLANNING APP FOR LANDSCAPE PHOTOGRAPHERS QUICK USER GUIDES

Digital Surveillance Devices?

Digital surveillance devices?

Google Earth Workshop Version 5

HOW CAN A GPS HELP? WHY A GPS? HOW DOES A GPS WORK?

Real Time Spatiotemporal Biological Stress Level Checking

Land Navigation / Map Reading

LinkAlign-60RPT Set-up and Operation Manual

AFRICA WILDLIFE TRACKING TAG USER MANUAL VERSION 02

PHOTOGRAMMETRY STEREOSCOPY FLIGHT PLANNING PHOTOGRAMMETRIC DEFINITIONS GROUND CONTROL INTRODUCTION

[GEOMETRIC CORRECTION, ORTHORECTIFICATION AND MOSAICKING]

Indoor Floorplan with WiFi Coverage Map Android Application

Open Standard based Visualization Infrastructure for 3D Geospatial Information

GPS Apps for Smart Phone and PC YHA Bushwalking Club Night Presentation. Lutz Lademann May 2016

REAL TIME WEB BASED SYSTEM FOR OBSERVING SAG AT SUBSTATION

3D Interaction using Hand Motion Tracking. Srinath Sridhar Antti Oulasvirta

Where Do Tourists Go? Visualizing and Analyzing the Spatial Distribution of Geotagged Photography

TOURISM for several country is a primordial matter to

LinkAlign-360FER Set-up and Operation Manual

Govt. Engineering College Jhalawar Model Question Paper Subject- Remote Sensing & GIS

Chapter 1 Overview of imaging GIS

Tour the World with World Wind By Rob Rice

Exp. 2: Chess. 2-1 Discussion. 2-2 Objective

TRX-300. GPS/GSM/GPRS Unit for fleet management PRELIMINARY PHOTO

Technology Talk Bulletin

GPS for Snowmobilers. By Wayne Fischer. November 14, 2006

idocent: Indoor Digital Orientation Communication and Enabling Navigational Technology

Interior Design with Augmented Reality

Location, Location, Location

TRBOnet Mobile. User Guide. for Android. Version 2.0. Internet. US Office Neocom Software Jog Road, Suite 202 Delray Beach, FL 33446, USA

Mobile Application Programming: Android

Lab #4 Topographic Maps and Aerial Photographs

Location Tracking. Current Technologies 1/19/2011. Not one, single technology Convergence of several technologies. Systems for

SST Expert Testimony Common Questions and Answers

Part 1. Tracing the Dimensions of Some Common Pixel Sizes using a GPS Receiver

Hybrid Earth: Mixed Reality at Planet Scale

Brian Hanna Meteor IP 2007 Microcontroller

3D Animation of Recorded Flight Data

User Guide: PTT Radio Application - ios. User Guide. PTT Radio Application. ios. Release 8.3

Sample Copy. Not For Distribution.

Introduction Getting Started

Automated Planetary Terrain Mapping of Mars Using Image Pattern Recognition

AR Glossary. Terms. AR Glossary 1

GPCD Calculations. Process Steps for SAWS Calculation

WHITE TIGRESS (BABY)- WTb

Tech Topic Sign Data Overlay for Google Earth

The GPS Classroom. Jared Covili

Scribble Maps Tutorial

Map Interface for Geo-Registering and Monitoring Distributed Events

ExpoM - ELF User Manual

Module 3 Introduction to GIS. Lecture 8 GIS data acquisition

International Journal of Advance Engineering and Research Development. Zig Bee Based Human Sensing Robot using Embedded Systems

HARRIS GEOSPATIAL MARKETPLACE. HarrisGeospatial.com

UNITED NATIONS UNIVERSITY Institute for Environment & Human Security (UNU-EHS) Bonn, Germany

Actors Play backend role for Internet of Things

9/12/2011. Training Course Remote Sensing Basic Theory & Image Processing Methods September 2011

Aerospace Sensor Suite

Automatically determine route and mode of tranport using a gps enabled phone

Influence of Positioning Error on X-Map Estimation

BREEZE OSD pro V1.1 manual

A Step-by-Step Guide to: for Andriod Devices

Seamless Navigation Demonstration Using Japanese Quasi-Zenith Satellite System (QZSS) and IMES

Public API: OpenWeatherMap

Lesson 4: Photogrammetry

Using Google My Maps for Civil War Monument, Marker, and Site Inventory

Augmented reality, ARToolKit, Computer vision, Image processing.

Installation and connection of Galileosky v4.0 tracking devices

Global Positioning Systems (GPS) Trails: the achilles heel of mapping from the air / satellites

GPS Activities 1. Trust em, but don t tempt em: 2. Mark & Find: 3. How many satellites?

RECOMMENDATION ITU-R P Guide to the application of the propagation methods of Radiocommunication Study Group 3

Evolution from 3D to 4D radar

Press Contact: Tom Webster. The Heavy Radio Listeners Report


Transcription:

Location Location support classes Maps Map support classes

Mobile applications can benefit from being location-aware Allows applications to determine their location and modify their behavior

Find stores near the user s current location Direct a user from a current to a particular store Define a geofence Initiate action when user enters or exits the geofence

Location LocationProvider LocationManager LocationListener

Represents a position on the Earth A Location instance consists of: Latitude, longitude, timestamp and, optionally, accuracy, altitude, speed, and bearing

Represents a location data source Actual data may come from GPS satellites Cell phone towers WiFi access points

Network WiFi and cell tower GPS - Satellite Passive Piggyback on the readings requested by other applications

Determines location based on cell tower and WiFi access points Requires either android.permission.access_coarse_location android.permission.access_fine_location

Determines location using satellites Requires android.permission.access_fine_location

Returns locations generated by other providers Requires android.permission.access_fine_location

Different LocationProviders offer different tradeoffs between cost, accuracy, availability & timeliness

GPS expensive, accurate, slower, available outdoors Network - cheaper, less accurate, faster, availability varies Passive cheapest, fastest, not always available

System service for accessing location data getsystemservice(context.location_service)

Determine the last known user location Register for location updates Register to receive Intents when the device nears or moves away from a given geographic area

Defines callback methods that are called when Location or LocationProvider status changes

void onlocationchanged (Location location) void onproviderdisabled (String provider) void onproviderenabled (String provider) void onstatuschanged (String provider, int status, Bundle extras)

Start listening for updates from LocationProviders Maintain a "current best estimate" of location When estimate is good enough, stop listening for location updates Use best location estimate

Several factors to consider Measurement time Accuracy Power usage

Application acquires and displays the last known locations from all providers If necessary, acquires and displays new readings from all providers

Location Get Location

The same as LocationGetLocation, but uses newer FusedLocationProvider class Uses Google Play Services

Always check last known measurement Return updates as infrequently as possible Limit measurement time Use the least accurate measurement necessary Turn off updates in onpause()

A visual representation of area Android provides Mapping support through the Google Maps Android v2 API

Normal: traditional road map Satellite Aerial photograph Hybrid - Satellite + road map Terrain - Topographic details

Change the camera position Add Markers & ground overlays Respond to gestures Indicate the user s current Location

GoogleMap MapFragment Camera Marker

Set up the Google Play services SDK Obtain an API key Specify settings in Application Manifest Add map to project See: https://developers.google.com/maps /documentation/android/start

<uses-permission android:name= "android.permission.internet"/> <uses-permission android:name= "android.permission.access_network_state"/>

<uses-permission android:name= "android.permission.write_external_storage"/> <uses-permission android:name= "com.google.android.providers. gsf.permission.read_gservices"/>

<uses-permission android:name= "android.permission.access_coarse_location"/> <uses-permission android:name= "android.permission.access_fine_location"/>

This application acquires earthquake data from a server Then it displays the data on a map, using clickable markers

MapEarth QuakeMap

public class MapsEarthquakeMapActivity extends Activity implements RetainedFragment.OnFragmentInteractionListener, OnMapReadyCallback { public void oncreate(bundle savedinstancestate) { // Set up UI and get earthquake data // The GoogleMap instance underlying the GoogleMapFragment defined in main.xml MapFragment map = ((MapFragment) getfragmentmanager().findfragmentbyid(r.id.map)); map.getmapasync(this); }

// Called when Map is ready public void onmapready(googlemap googlemap) { } mmapready = true; mmap = googlemap; mmap.movecamera( CameraUpdateFactory.newLatLng(new LatLng(CAMERA_LAT, CAMERA_LNG))); if (mdataready) { placemarkers(); mmapready = false; }

// Called when data has been downloaded public void ondownloadfinished() { mdataready = true; if (mmapready) { placemarkers(); mdataready = false; } }

private void placemarkers() { // Add a marker for every earthquake for (EarthQuakeRec rec : mretainedfragment.getdata()) { // Add a new marker for this earthquake mmap.addmarker(new MarkerOptions() // Set the Marker's position.position(new LatLng(rec.getLat(), rec.getlng())) // Set the title of the Marker's information window.title(string.valueof(rec.getmagnitude())) // Set the color for the Marker.icon(BitmapDescriptorFactory.defaultMarker( getmarkercolor(rec.getmagnitude())))); } }

The ContentProvider Class

LocationGetLocation LocationGetLocationServices MapEarthQuakeMap