1 / 14

Android and Location

Android and Location. Latitude and Longitude determine location. Latitude = north/south of the equator Longitude = east/west of Greenwich. And where is California?. What’s the latitude and longitude of California?. California is East of London. 30°N 0°E. http://www.earthtools.org/.

ferris
Download Presentation

Android and Location

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 and Location

  2. Latitude and Longitude determine location • Latitude = north/south of the equator • Longitude = east/west of Greenwich

  3. And where is California? What’s the latitude and longitude of California?

  4. California is East of London 30°N 0°E http://www.earthtools.org/

  5. Use Google API for location • Select Google APIs for new projects using maps and location • Otherwise your app won’t run

  6. Also put permissions in manifest • Need to add permissions for • INTERNET • ACCESS_COURSE_LOCATION • ACCESS_FINE_LOCATION

  7. Manifest also needs to specify map library Apps with maps need to specify need as ‘true’ for com.google.android.maps library in manifest

  8. Map layouts need API key • Need to get Google MAPs API key to use maps in your apps – referenced in layout http://code.google.com/android/add-ons/google-apis/mapkey.html This allows map tiles to be downloaded to your application

  9. Direction API for routes included Can use direction API within maps API for routes http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t826.html

  10. LocationListener updates map This is about as simple as it gets for map display http://www.vogella.de/articles/Android/article.html#locationapi

  11. Use DDMS tool to set location

  12. Geocoder library to look up location

  13. Can’t use external Bluetooth GPS devices with Android • Can’t use external BT device for location determination • This will, hopefully, change as android develops.

  14. Summary • Maps need API key to be displayed • Maps needs permissions set in manifest • Maps need API enabled • Lots of work done over network

More Related