Presentation is loading. Please wait.

Presentation is loading. Please wait.

Bruce Scharlau, University of Aberdeen, 2010 Android and Location Mobile Computing Unless otherwise stated, images are from android sdk.

Similar presentations


Presentation on theme: "Bruce Scharlau, University of Aberdeen, 2010 Android and Location Mobile Computing Unless otherwise stated, images are from android sdk."— Presentation transcript:

1 Bruce Scharlau, University of Aberdeen, 2010 Android and Location Mobile Computing Unless otherwise stated, images are from android sdk

2 Latitude and Longitude determine location Latitude = north/south of the equator Longitude = east/west of Greenwich Bruce Scharlau, University of Aberdeen, 2010

3 And where is Aberdeen? Whats the latitude and longitude of Aberdeen? Bruce Scharlau, University of Aberdeen, 2010

4 Aberdeen is west of London Bruce Scharlau, University of Aberdeen, °N °W

5 Use Google API for location Select Google APIs for new projects using maps and location Otherwise your app wont run Bruce Scharlau, University of Aberdeen, 2010

6 Also put permissions in manifest Need to add permissions for INTERNET ACCESS_COURSE_LOCATION ACCESS_FINE_LOCATION Bruce Scharlau, University of Aberdeen, 2010

7 Manifest also needs to specify map library Apps with maps need to specify need astrue for com.google.android.maps library in manifest Bruce Scharlau, University of Aberdeen, 2010

8 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, This allows map tiles to be downloaded to your application

9 Direction API for routes included Bruce Scharlau, University of Aberdeen, 2010 Can use direction API within maps API for routes

10 LocationListener updates map Bruce Scharlau, University of Aberdeen, 2010 This is about as simple as it gets for map display

11 Use DDMS tool to set location Bruce Scharlau, University of Aberdeen, 2010

12 Geocoder library to look up location Bruce Scharlau, University of Aberdeen, 2010

13 Cant use external Bluetooth GPS devices with Android Cant use external BT device for location determination, as you can with Java ME There is a separate app for this you can install and enable this feature: Bluetooth GPS Provider (not tried it yet) Bruce Scharlau, University of Aberdeen, 2010

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 Bruce Scharlau, University of Aberdeen, 2010


Download ppt "Bruce Scharlau, University of Aberdeen, 2010 Android and Location Mobile Computing Unless otherwise stated, images are from android sdk."

Similar presentations


Ads by Google