• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Location determination with Android
 

Location determination with Android

on

  • 831 views

 

Statistics

Views

Total Views
831
Views on SlideShare
831
Embed Views
0

Actions

Likes
0
Downloads
7
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Location determination with Android Location determination with Android Presentation Transcript

    • Android and Location Mobile Computing Bruce Scharlau, University of Aberdeen, 2009 Based on android-sdk_1.6-r1 Unless otherwise stated, images are from android sdk
    • Proxy issues while in eduroam
      • Instructions now on assignment page
      • Java ME: see practical 3
      • Android: see practical 8
      Bruce Scharlau, University of Aberdeen, 2009
    • Latitude and Longitude determine location
      • Latitude = north/south of the equator
      • Longitude = east/west of Greenwich
      Bruce Scharlau, University of Aberdeen, 2009
    • And where is Aberdeen?
      • What’s the latitude and longitude of Aberdeen?
      Bruce Scharlau, University of Aberdeen, 2009
    • Aberdeen is west of London Bruce Scharlau, University of Aberdeen, 2009 http://www.earthtools.org/ 57.1467°N 2.0901°W
    • Use Google API for location
      • Select Google APIs for new projects using maps and location
      • Otherwise your app won’t run
      Bruce Scharlau, University of Aberdeen, 2009
    • Also put permissions in manifest
      • Need to add permissions for
      • INTERNET
      • ACCESS_COURSE_LOCATION
      • ACCESS_FINE_LOCATION
      Bruce Scharlau, University of Aberdeen, 2009
    • Manifest also needs to specify map library
      • Apps with maps need to specify need as ‘true’ for com.google.android.maps library in manifest
      Bruce Scharlau, University of Aberdeen, 2009
    • Map layouts need API key
      • Need to get Google MAPs API key to use maps in your apps – referenced in layout
      Bruce Scharlau, University of Aberdeen, 2009 http://code.google.com/android/add-ons/google-apis/mapkey.html This allows map tiles to be downloaded to your application
    • Direction API for routes included Bruce Scharlau, University of Aberdeen, 2009 Can use direction API within maps API for routes http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t826.html
    • LocationListener updates map Bruce Scharlau, University of Aberdeen, 2009 This is about as simple as it gets for map display http://www.vogella.de/articles/Android/article.html#locationapi
    • Use DDMS tool to set location Bruce Scharlau, University of Aberdeen, 2009
    • Geocoder library to look up location Bruce Scharlau, University of Aberdeen, 2009
    • Can’t use external Bluetooth GPS devices with Android
      • Can’t use external BT device for location determination, as you can with Java ME
      • This will, hopefully, change as android develops.
      Bruce Scharlau, University of Aberdeen, 2009
    • Summary
      • Maps need API key to be displayed
      • Maps needs permissions set in manifest
      • Maps need API enabled
      • Lots of work done over network
      Bruce Scharlau, University of Aberdeen, 2009