O'Reilly logo

Android Programming: The Big Nerd Ranch Guide by Brian Hardy, Bill Phillips

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

33Tracking the Device’s Location

In this chapter, you will create a new application called RunTracker. RunTracker works with a device’s GPS to record and display the user’s travels. Those travels may be a walk in the woods at Big Nerd Ranch Bootcamp, a car ride, or an ocean voyage. RunTracker is designed to keep a record of them all.

The first version of RunTracker will simply get location updates from the GPS and display the device’s current location on screen. Eventually, RunTracker will show a map that follows the user in real time.

Getting Started with RunTracker

Create a new Android application with the following configuration:

Figure 33.1  Creating RunTracker

Notice two differences from previous projects. First, you are raising the minimum ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required