Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

11. Route Tracker App

11. Route Tracker App

Objectives

In this chapter you’ll:

• Test an app that uses GPS location data in the Android Emulator and use the Eclipse DDMS perspective to send sample GPS data to the emulator.

• Use the external Maps API framework and the MapActivity and MapView classes to display Google Maps™ generated by Google web services.

• Get a Google Maps™ API key unique to your development computer.

• Use location services and the LocationManager class to receive information on the device’s position and bearing (direction).

• Display the user’s route using an Overlay on a MapView and GPS location data received in the form of Location objects.

• Orient a map to the user’s current bearing.

• Use the PowerManager to keep the device awake.

Outline

11.1 Introduction


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial