Location based services

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
Bruce Scharlau, University of Aberdeen, 2010 Android and Location Mobile Computing Unless otherwise stated, images are from android sdk.
VIP Smartphone Team – Ahmad, Din, Vinayak Car Locator App Fall 2010 VIP Smartphone Team Ahmad, Din, Vinayak.
Introducing to Location in Android LOCATION IS EVERYTHING Kamil Lelonek Kamil Lelonek
Location based services
Prepared by: Prepared by: Jameela Rabaya Jameela Rabaya Fatima Darawsha Fatima Darawsha.
Sensors. Point your phone at the sky, and Google Sky Map tells you which stars you’re looking at. Tilt your phone, and you can control the game you’re.
CS378 - Mobile Computing Maps. Using Google Maps Like other web services requires an API key from Google ons/google-apis/mapkey.html.
Chapter 11: Discover! Incorporating Google Maps
Google Android Map API Presentation 13/03/2008. Map API – Overview (1) Map rendering facility on Android device Similar to Google Earth Integrate map.
Location & Maps.  Mobile applications can benefit from being location-aware, e.g.,  Routing from a current to a desired location  Searching for stores.
© 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.
Location and Maps Content Getting Location Getting Google Map In application Test on Emulator/Device.
Location Based Services
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.
CS378 - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives: Open Street Maps –
Map Applications.
Route Tracker App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
By: Simon Kleinsmith Supervisor: Mr Mehrdad Ghaziasgar Co-supervisor: Mr James Connan.
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)
Exploring Map Layers in Google Earth Georeferencing Images.
Location based services Using Google Maps v2 etc. in Android apps 1Location based services.
Social network Twitter Hashtag: #m2eu #android Personal Israel Ferrer –
CSS216 MOBILE PROGRAMMING Android, Chapter 8 Book: “Professional Android™ 2 Application Development” by Reto Meier, 2010 by: Andrey Bogdanchikov (
Operating system for mobile devices with a Java programming interface. Provides tools, e.g. a compiler, debugger, device emulator, and its own Java Virtual.
INTRODUCTION TO HTML5 Geolocation. Display a Specific Location with Google Maps  You can use the Google Maps API to display a custom map on your own.
NEARBY: HYBRID NETWORK MOBILE APPLICATION Shuai Zhang, Ziwen Zhang, Jikai Yin.
Android Accessing GPS Ken Nguyen Clayton State University 2012.
GEOREMINDERS ANDROID APPLICATION BY: ADRIENNE KECK.
Context Aware Location Nasrullah. Location Basics LocationManager—Class providing access to Android system location services LocationListener—Interface.
MAKANI ANDROID APPLICATION Prepared by: Asma’ Hamayel Alaa Shaheen.
1 CSCE 5013: Hot Topics in Mobile and Pervasive Computing Nilanjan Banerjee Hot Topic in Mobile and Pervasive Computing University of Arkansas Fayetteville,
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.
Adding Location Nasrullah. Adding Location Adding a Map Activity Obtaining a Map API Debug Key Adding a Map View Finding an Address with Google’s GeoCoder.
LocationListener in Android Nasrullah. The LocationManager provides access to the system location services The LocationListener is used for receiving.
CMPE Senior Design Project Group Members: Jose A Montoya (CMPE) Carlos Olvera (CSCI)
Android - Location Based Services. Google Play services facilitates adding location awareness to your app with automated location tracking Geo fencing.
Sensors – Part 2 SE 395/595. Location in Android LocationManager class – Configure providers and their listeners LocationListener class – Handles update.
Manual Testing Lesson 3 Test Driving your application.
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)
CS371m - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives Exist: – Open Street Maps –
3 rd -party APIs Kalin Kadiev Astea Solutions AD.
CS378 - Mobile Computing Location (Location, Location, Location)
1. 2 Android location services Determining a device’s current location Tracking device movements Proximity alerts.
CS499 – Mobile Application Development Fall 2013 Location & Maps.
Android Application Maps 1.
Tracking device movements
What this activity will show you
AnDroid GoogleMaps API
User Guide – Apple / Android
Tracking and Booking Taxi
Sensors, maps and fragments:
CS371m - Mobile Computing Maps.
Iteration 1 Presentation
CIS 470 Mobile App Development
Location (Location, Location, Location)
Find your friend – An Android application
CIS 470 Mobile App Development
CS378 - Mobile Computing Location and Maps.
Maps, Geocoding, and Location-Based Services.
Presentation transcript:

Location based services Using Google maps etc. in Android apps Location based services

Some location-based services available in Android Showing maps Annotating maps Geocoding Address -> location Reverse geocoding Location -> address(es) Getting live location information Through GPS, mobile phone cell tower triangulation, or Wi-Fi positioning Location based services

Location based services Google maps Google maps are NOT part of the Google API It’s an add-on Choose Google API when you create a new Eclipse project Add another element to androidManifest.xml (inside the Application element) <uses-library android:name="com.google.android.maps" /> To use Google Maps in your Android application you must obtain a Google Maps API key from Google Special classs com.google.android.maps.MapActivity (Map API v1) and MapFragment (Map API v2) Example: Lee4Maps Location based services

Some Map related classes MapActivity setBuiltInZoomControls(true) Show ‘-’ and ‘+’ buttons to zoom out and in setSatellite(true) Satellite view setStreetView(true) I had problems with this on (sometimes) GeoPoint (latitude, longitude) in micro-degrees Degrees * 1E6 (aka. 1 million) Decimal, not sexagesimal Sexagesimal, degrees:minutes:seconds, used in the navy MapController MapControler mc = mapActivit.getController(); mc.animateTo(geoPoint) Location based services

Location based services Map overlays Map overlays are like transparent films placed over a map. Overlays can be annotated with different symbols, like pushpins The class com.google.android.maps.Overlay Often extends as an inner class inside a MapActivity class Some methods Draw(Canvas, MapView, shadow, when) Enables you to annotate the overlay onTouchEvent(MotionView, MapView) Called then the user clicks the overlay Location based services

Geocoding and reverse geocoding Geocoder geocoder = new Geocoder(context, locale) Geocoding Address -> position geocoder.getFromLocation(latitude, longitude, howMany) Reverse geocoding Position -> Address(es) geocoder.getFromLocationName(location, howMany); I had problems ”Service not Available” in my emulator Works on my phone. Location based services

Getting location data: Where am I? Some applications needs to know the current position of the user’s device. Three ways to obtain the position GPS satellite Most accurate Mobile phone cell tower triangulation Works indoors Wi-Fi The address of the connected Wi-Fi should be known Least accurate AndroidManifest.xml <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> Location based services

Location related classes and interfaces Package: android.location LocationManager Class: Provides access to Android location services LocationListener Interface: Receiving notifications from LocationManager when location has changed LocationProvider Abstract class: Describes a location provider, like GPS Location Class: Geographic location Example: location, Eclipse project Location based services

Setting locations in the emulator Eclipse: Use the DDMS perspective Window -> Open Perspective -> DDMS Emulator control tab / window Scroll down to ”location controls” You can send new locations to the emulator as often as you want To simulate a moving device I had problems!! Location based services

Different location providers: Pros and cons GPS_PROVIDER Accurate Works only outdoors Device must have satellite connection Consumes battery Satellite connection consumes battery Slow NETWORK_PROVIDER Less accurate Works indoors (Wi-Fi + cell-tower) and outdoors (cell-tower) Consumes less battery Faster Source http://developer.android.com/guide/topics/location/obtaining-user-location.html Location based services