Sensors – Part 2 SE 395/595. Location in Android LocationManager class – Configure providers and their listeners LocationListener class – Handles update.

Slides:



Advertisements
Similar presentations
Android Application Development Tutorial. Topics Lecture 4 Overview Overview of Sensors Programming Tutorial 1: Tracking location with GPS and Google.
Advertisements

Google APIs & Location Based Applications -Krishna Achanta
Introducing to Location in Android LOCATION IS EVERYTHING Kamil Lelonek Kamil Lelonek
Location based services
Digital Thermostat and Data Logger Brandon Wagner and David Southwick.
Prepared by: Prepared by: Jameela Rabaya Jameela Rabaya Fatima Darawsha Fatima Darawsha.
Location & Maps.  Mobile applications can benefit from being location-aware, e.g.,  Routing from a current to a desired location  Searching for stores.
Location Aware Devices  Location information can lead to creative applications  GPS hardware  cell tower positioning.
Android Application Development. Agenda  Android Business Model  Why Android  Android application market space  Market Segments & Target customers.
Cosc 5/4730 GPS/Location Blackberry JSR-179: javax.microedition.location and android.location.
© 2009 Research In Motion Limited Introduction to GPS and Wi-Fi technology on BlackBerry smartphones.
Android wifi-based localization. Localization types Android allows (location providers) – GPS (GPS_PROVIDER) – Cell tower + wifi (NETWORK_PROVIDER) You.
Vision ePCS Version 2 Palliative Care Guideline The Version 2 Guideline has been redesigned to assist users in the process of entering data for sharing.
Cosc 5/4730 GPS/Location android.location. Simulator notes All the simulators can simulator GPS/location information – Android DDMS commands (geo) to.
CS378 - Mobile Computing Location (Location, Location, Location)
CS378 - Mobile Computing Location.
TxConnect – A Parent’s View. 4/9/  Is a web-based application designed to allow parents access to student information entered in the txGradebook.
Map Applications.
Android Sensors & Async Callbacks Jules White Bradley Dept. of Electrical and Computer Engineering Virginia Tech
Location-Based API 1. 2 Location-Based Services or LBS allow software to obtain the phone's current location. This includes location obtained from the.
Location Services: Part 1 (Location and Geocoding)
Location based services Using Google Maps v2 etc. in Android apps 1Location based services.
Mobile Programming Lecture 9 Bound Service, Location, Sensors, IntentFilter.
1 Localization and Sensing Nilanjan Banerjee Mobile Systems Programming (Acknowledgement: Jules White) University of Arkansas Fayetteville, AR
Social network Twitter Hashtag: #m2eu #android Personal Israel Ferrer –
Location based services
CSS216 MOBILE PROGRAMMING Android, Chapter 8 Book: “Professional Android™ 2 Application Development” by Reto Meier, 2010 by: Andrey Bogdanchikov (
Sensing. Possible sensors on devices – Documented in SensorEvent class Accelerometer (m/s 2 ) – acceleration in x, y, z axes Magnetic Field (micro Tesla)
COMP 365 Android Development.  Manages access from a central database  Allows multiple applications to access the same data.
Android Accessing GPS Ken Nguyen Clayton State University 2012.
1 CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee Introduction to Mobile Computing University of Maryland Baltimore County
1-1 NET+OS Software Group Flash API Multiple flash memory bank support New Flash API introduction Detailed Flash API Function presentation Supporting.
MAKANI ANDROID APPLICATION Prepared by: Asma’ Hamayel Alaa Shaheen.
GPS Provider:  GPS signal Network Location Provider:  Cell ID  Wi-Fi.
Location. GPS Global Positioning System – At least 4 satellites typically used 3 required extra for error detection and altitude typically accurate within.
Maps Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.
Human Tracking System Using DFP in Wireless Environment 3 rd - Review Batch-09 Project Guide Project Members Mrs.G.Sharmila V.Karunya ( ) AP/CSE.
LocationListener in Android Nasrullah. The LocationManager provides access to the system location services The LocationListener is used for receiving.
Event-driven design will set you free The Observer Pattern 1.
FCM Workflow using GCM.
Android - Location Based Services. Google Play services facilitates adding location awareness to your app with automated location tracking Geo fencing.
Cosc 4735 Primer: Marshmallow Changes and new APIs in android 6.0 (api 23)
Cosc 4735 Permissions Asking for them in API 23+.
Cosc 4735 LocationAware API. Previous on … Before we looked at GPS location. – d-gpslocation.pptx
Event-driven design will set you free The Observer Pattern 1.
Location Based Services. Android location APIs make it easy for you to build location-aware applications, without needing to focus on the details of the.
Chapter 11.  Large amounts of data are often stored in a database—an organized collection of data.  A database management system (DBMS) provides mechanisms.
GPS and MapView. First In the emulator, set the time zone to something (e.g., east coast) and check that the time is correct. Otherwise, the gps emulator.
Location based services 1. Some location-based services available in Android Geo-coding – Address -> location Reverse geo-coding – Location -> address(es)
Android Fundamentals. What is Android Software stack for mobile devices Software stack for mobile devices SDK provides tools and APIs to develop apps.
CS378 - Mobile Computing Location (Location, Location, Location)
1. 2 Android location services Determining a device’s current location Tracking device movements Proximity alerts.
Location-Based Services. Objectives How to display Google Maps in your application How to control displayed maps How to perform geocoding and reverse.
CS499 – Mobile Application Development Fall 2013 Location & Maps.
Location Services: Part 1 (Location and Geocoding)
Tracking device movements
JDBC Database Management Database connectivity
Ping™ 6.
Designing Apps Using The WebView Control
Android Location Based Services
Roku Com Link Call (Toll- Free) Visit Our Website
Sensors, maps and fragments:
Location Service and Sensors
CIS 470 Mobile App Development
Location (Location, Location, Location)
Proposed Solution To Parts Of
CIS 470 Mobile App Development
CS378 - Mobile Computing Location and Maps.
Maps, Geocoding, and Location-Based Services.
Storing and Processing Sensor Networks Data in Public Clouds
Presentation transcript:

Sensors – Part 2 SE 395/595

Location in Android LocationManager class – Configure providers and their listeners LocationListener class – Handles update of location from a provider Location class – Presentation of a location udate manifest.xml – Permissions enabled here

Location Manager Obtain a list of all providers Retrieve the best provider given some criteria Request last known location for a provider Add standard location listeners – Also NMEA listeners, provides time stamp and NMEA string – A variety of listener options exist

Provider Types GPS_PROVIDER – When enabled provides location fixes via GPS – Requires ACCESS_FINE_LOCATION PERMISSION – Extra data: number of satellites NETWORK_PROVIDER – When enabled provides location fixes via network location of available cell towers and/or access points PASSIVE_PROVIDER – Does not request provider enabled – Returns location fixes being provided to other requesting entities – Requires ACCESS_FINE_LOCATION

Location Provider Similar to Sensor class – Name, power requirements, monetary cost to use, meets criteria (more on that later), requires cell, requires network, etc. – Doesn’t really provide access to date, but really details on the system.

Location Listener onStatusChanged(String provider, int status, Bundle extras) onProviderEnabled(String provider) onProviderDisabled(String provider) onLocationChanged(location)

Registering location updates Several possible options to request one or multiple location listeners requestLocationUpdates (String provider, long minTime, float minDistance, LocationListener listener) Where, minTime – minimum time interval between updates minDistance – minimum distance between updates (meters) Listener – LocationListener to listen for these changes

Location class Stores location objects – Not just for location sensor handling getLatitude getLongitude getBearing getSpeed getTime getAccuracy() etc.

Permissions Add to manifest.xml as needed above:

References API Reference – ocation/LocationListener.html ocation/LocationListener.html – ocation/LocationManager.html ocation/LocationManager.html – ocation/Location.html ocation/Location.html