Using the Cell Phones GPS Functionality

HIHII

■ 1»

■■ "¡ÜT.Är!

0

Companies. Click here for terms of use.

Key Skills & Concepts

• Using the Android location-based service APIs

• Obtaining coordinate data from the GPS hardware

• Changing your Activity's look and feel with a RelativeLayout

• Using a MapView to plot your current location

• Using Google Maps to find your current location

In this chapter, you are going to learn about the Android Location-Based API. This chapter is invaluable if you want to leverage the ability of Android to work with the Global Positioning System (GPS) hardware of a device. You will use the Android Location-Based API to collect your current position and display that location to the screen. Toward the end of this chapter, you will use Google Maps to display your current location on your cell phone.

You will also learn some new techniques that will add some depth and creativity to your Activities. Resources such as RelativeLayouts and small buttons will let you create more user-friendly and visually appealing Activities for Android.

In the first section of this chapter, you will learn about using your device's GPS hardware to obtain your current location. However, before you jump into that section, you need to create your project for this chapter. Create a new Project in Eclipse and name it AndroidLBS.

0 0

Post a comment