Location based services

Slides:



Advertisements
Similar presentations
Location Determination for Mobile Devices Wencong Yuan Apr
Advertisements

Android Application Development A Tutorial Driven Course.
Android Application Development Tutorial. Topics Lecture 4 Overview Overview of Sensors Programming Tutorial 1: Tracking location with GPS and Google.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Scienze dellInformazione Università di Bologna.
Programming with Android: Module Overview
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.
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
VIP Smartphone Team – Ahmad, Din, Vinayak Car Locator App Fall 2010 VIP Smartphone Team Ahmad, Din, Vinayak.
David Meredith Sphero David Meredith
Cosc 5/4730 Android Maps v2. Maps V1 and V2 In March 2013 google removed the ability to get a map key for version 1. Version 2 had been introduced in.
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.
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
Prepared by: Prepared by: Jameela Rabaya Jameela Rabaya Fatima Darawsha Fatima Darawsha.
HTML 5 – GeoLocation and Maps. Geolocation API What is a ”geolocation”…? A geographical location, defined in terms of – Latitude (north/south) – Longitude.
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
Location-Based Services: Part 2 (Google Maps)
Location based social networking on Android phones – integrated with Facebook. Simple and easy to use.
Location & Maps.  Mobile applications can benefit from being location-aware, e.g.,  Routing from a current to a desired location  Searching for stores.
CS378 - Mobile Computing Location.
CS378 - Mobile Computing Maps. Using Google Maps Content on using Google Maps inside your app Alternatives: Open Street Maps –
Android Fragments A very brief introduction Android Fragments1.
Map Applications.
Route Tracker App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算
Subtitle touch | Title of presentation | Date DD/MM/YYYY Touch Cloud Android SDK Ghady Rayess – Jan 19 th, 2013.
Location based services Using Google Maps v2 etc. in Android apps 1Location based services.
Social network Twitter Hashtag: #m2eu #android Personal Israel Ferrer –
Location based services
Prerequisites Android Studio – io.html io.html Java.
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,
Android networking 1. Network programming with Android If your Android is connected to a WIFI, you can connect to servers using the usual Java API, like.
Dr. Martin Zhao Sept 4, Topics HTML and related tutorials on w3schools.com Related HTML tags Adding interesting features using JavaScript What is.
First Venture into the Android World Chapter 1 Part 2.
Webview and Web services. Web Apps You can make your web content available to users in two ways in a traditional web browser in an Android application,
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.
Introduction to Android
CMPE Senior Design Project Group Members: Jose A Montoya (CMPE) Carlos Olvera (CSCI)
FCM Workflow using GCM.
Android - Location Based Services. Google Play services facilitates adding location awareness to your app with automated location tracking Geo fencing.
Introduction to Android Android Club Agenda Set development environment “Hello Android” app Device connection Debugging.
DEVOLOPING ANDROID APP ON LOCATION BASED REMINDER ON ANDROID MOBILE SYSTEMS.
TCS Internal Maps. 2 TCS Internal Objective Objective :  MAPS o Integration of Maps.
Cosc 4735 LocationAware API. Previous on … Before we looked at GPS location. – d-gpslocation.pptx
Phonegap Bridge –Geolocation and Google maps CIS 136 Building Mobile Apps 1.
Chapter 6 Google Play Services GOALS & OBJECTIVES Google Play Services give you features to attract users using Google features such as Google Maps, Google+,
INTRODUCING HYBRID APP KAU with MICT PARK IT COMPANIES Supported by KOICA
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.
Android Application Maps 1.
Location-Based Services: Part 2 (Google Maps)
Tutorial Using the App help.ebsco.com.
Android Studio, Android System Basics and Git
Development-Introduction
Sensors, maps and fragments:
The GoogleMap API By Cody Littley.
Google Maps Tutorials Android Studio. About Google map Google Maps is a web mapping service developed by Google. Google Maps began as a C++ desktop program.
CS371m - Mobile Computing Maps.
Location (Location, Location, Location)
Find your friend – An Android application
Tutorial Using the App help.ebsco.com.
Office 365 Development.
CS378 - Mobile Computing Location and Maps.
Mobile Programming Dr. Mohsin Ali Memon.
Presentation transcript:

Location based services Using Google Maps v2 etc. in Android apps Location based services

Some location-based services available in Android Google maps Showing and annotating maps Geo-coding Address -> location Reverse geo-coding 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 Android API It’s an add-on This means that you will have to do a number of things to make it work … Location based services

Google Maps API versions Google Maps Android API MapActivity, Overlay, etc. Deprecated Google Maps Android API v2 MapFragment, etc. https://developers.google.com/maps/documentation/android/ Google Maps for JavaScript v2 Google Maps for JavaScript v3 https://developers.google.com/maps/documentation/javascript/ Location based services

Some Map related classes Example: maps2013 GoogleMap This is the main class setOnMapClickListener(…) Hitting the map you can add markers, etc. MyLocation Will send you to your current location Requires permissions: ACCESS_COARSE_LOCATION and ACCESS_FINEL_LOCATION UISettings To change the default settings of the map MapFragment To show the map as part of an activity Not used in the layout.xml (only “fragment”) Used in the Activity (Java code) Android ≥ 3 (API 11) only SuppportMapFragment for older devices MapView Another way to show a map Location based services

Location based services Markers Marker An annotation on a map Map. setOnMarkerClickListener(…) Event when you hit a marker MarkerOptions The “constructor” parameters for Marker objects Position, title, icon, etc. Circle, and other annotation You can add circles (and many other annotation) to a map Location based services

How to make it work … when programming Google Maps API v2 is part of Google Play services SDK Use the Android SDK Manager to obtain the ”Google Play Services” API It’s in “Extra” at the bottom of the screen http://www.vogella.com/articles/AndroidGoogleMaps/article.html#installmaps Android Studio can create a special Map activity This is quite helpful Location based services

How to make it work … when running Google Maps API key SHA1 + applications package name gives you a key http://www.vogella.com/articles/AndroidGoogleMaps/article.html#maps_key The key must be placed in AndroidManifest.xml Permissions to use Internet, etc. Stated in AndroidManifest.xml Google Maps requires Open GL Genymotion: Has no access to GooglePlay It should be possible to upgrade GenyMotion, but I can’t make it work It run the app on my Android 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

Getting location updates locationManager.requestLocationUpdates( … ) http://developer.android.com/reference/android/location/LocationManager.html Example: Maps3 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

Location based services Geocoding Getting real addresses from a position GeoCoder List<Address> getFromLocationName(name, howMany) Geocoding Address includes ordinary address + (lat, long) List<Address> getFromLocation(lat, long, howMany) Reverse geocoding Example: Maps3 Location based services

References and further readings Google Maps Android API v2 https://developers.google.com/maps/documentation/android/ Lars Vogel: Google Maps Android API v2 – Tutorial http://www.vogella.com/articles/AndroidGoogleMaps/article.html George Mathew: Remove a single marker from Google Maps Android API V2 … Making your app location-aware http://developer.android.com/training/location/index.html Location based services