1 / 12

Android location-based services

Android location-based services. Peter Liu School of ICT, Seneca College. Android Location-Based Services. Google Maps 2 demos: MyFirstMap, MyPlaces Geocoding and Reverse Geocoding demo: GeocodingTester Location Awareness demo: MyFirstLocation Location Awareness + Google Maps

rupert
Télécharger la présentation

Android location-based services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Android location-based services Peter Liu School of ICT, Seneca College

  2. Android Location-Based Services • Google Maps • 2 demos: MyFirstMap, MyPlaces • Geocoding and Reverse Geocoding • demo: GeocodingTester • Location Awareness • demo: MyFirstLocation • Location Awareness + Google Maps • demo: I AM HERE

  3. Google Maps Android API v2 • Warnings • API v1: deprecated in December 2012 https://developers.google.com/maps/documentation/android/v1/ • the examples in the textbook: outdated • testing on a real Android device • the Gentry emulator? • Example 1: MyFirstMap • Example 2: MyPlaces

  4. MyFirstMap • Activity • get a handle to a Google Map object • the initial state of the map object • map types • the layout xml file • MapFragment • the Android Manifest file • permissions • Google Maps API key (How to get it?)

  5. MyPlaces • the LatLng class • add markers to a map • move the camera

  6. LAB 8 • Install Google Play services library for your Android SDK. • Add Google Play services as an Android library project. • Reference the Google Play services in your Android project. • More…

  7. Geocoding and Reverse Geocoding • Android Location API • Demo: GeocodingTester • Geocoding • address => geo-coordinates: (latitude, longitude) • Reverse Geocoding • geo-coordinates: (latitude, longitude) => address

  8. MyFirstGeocoder • emulator: Google API (NOT Android API) • the Geocoder class • the Address class • permissions in the Android manifest file

  9. GeocodingTester • an array of addresses • an array of geo-coordinates • UI • Spinner views • EditText views: not implemented yet!

  10. Location Awareness • get your current geographical location • Example 1: MyFirstLocation • the LocationManager object • the Criteria object • permissions in the Android Manifest file • emulator • Android API: ok! • use DDMS to send GPS coordinates

  11. Location Awareness + Google Maps • Example (Dartmouth College): I AM HERE

  12. Resources • the course wiki

More Related