0
Location and Maps
Topics
• Location services
• Providing mock location data
• Google Maps external library
Location Services
Android Location Services
• Provided by LocationManager system service
> Call getSystemService(Context.LOCATION_SERVICE)
•...
Providing
Mock Location Data
Mock Location Data - Two Schemes
• Using DDMS
> Manually send individual longitude/latitude
coordinates to the device.
> U...
Google Maps
External Library
What is Google Maps External Library?
• Makes it easier for you to add powerful
mapping capabilities to your application
•...
com.google.android.maps.MapView
• A subclass of ViewGroup
• Displays a map with data obtained from the
Google Maps service...
com.google.android.maps.MapView
• In general, the MapView class provides a
wrapper around the Google Maps API that lets
yo...
Thank you
Upcoming SlideShare
Loading in...5
×

Android location

661

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
661
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
29
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Android location"

  1. 1. Location and Maps
  2. 2. Topics • Location services • Providing mock location data • Google Maps external library
  3. 3. Location Services
  4. 4. Android Location Services • Provided by LocationManager system service > Call getSystemService(Context.LOCATION_SERVICE) • Once your application has a handle to a LocationManager instance, your application will be able to do three things: > Query for the list of all LocationProviders known to the LocationManager for its last known location. > Register/unregister for periodic updates of current location from a LocationProvider (specified either by Criteria or name). > Register/unregister for a given Intent to be fired if the device comes within a given proximity (specified by radius in meters) of a given lat/long.
  5. 5. Providing Mock Location Data
  6. 6. Mock Location Data - Two Schemes • Using DDMS > Manually send individual longitude/latitude coordinates to the device. > Use a GPX file describing a route for playback to the device. > Use a KML file describing individual placemarks for sequenced playback to the device. • “geo” command line option > Launch your application in the Android emulator and open a terminal/console in your SDK's /tools directory
  7. 7. Google Maps External Library
  8. 8. What is Google Maps External Library? • Makes it easier for you to add powerful mapping capabilities to your application • The classes of the com.google.android.maps package offer > built-in downloading rendering, and caching of Maps tiles, as well as a variety of display options and controls.
  9. 9. com.google.android.maps.MapView • A subclass of ViewGroup • Displays a map with data obtained from the Google Maps service. • When the MapView has focus, it will capture keypresses and touch gestures to pan and zoom the map automatically, including handling network requests for additional maps tiles. • Provides all of the UI elements necessary for users to control the map.
  10. 10. com.google.android.maps.MapView • In general, the MapView class provides a wrapper around the Google Maps API that lets your application manipulate Google Maps data through class methods, and it lets you work with Maps data as you would other types of Views.
  11. 11. Thank you
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×