Page 227

210

Android: A Programmer’s Guide

Getting the nmea File in Linux

If you are using Linux for your Android development, begin a terminal session to access the adb server. Let’s take a quick look at the steps for retrieving and editing the nmea file in Linux.

NOTE The screenshots in this section were taken in the Fedora distribution of Linux.

The first step is to open a new terminal session (Applications | System Tools | Terminal). Next, use the adb pull command to pull the nmea file to the Android folder: adb pull data/misc/location/gps/nmea Android/

If you read the Windows directions for getting the nmea file, you’ll notice a slight difference in the syntax for Linux; the inclusion of c:\ is unnecessary because of the difference in directory structures. After you execute the command from the terminal, the resulting screen should appear as shown in the following illustration.

McGraw.Hill.Android.A.Programmers.Guide.Jul.2008  

Android ™ A Programmer’s Guide This page intentionally left blank A Programmer’s Guide J.F. DiMarzio New York Chicago San Francisco Lisbon L...

McGraw.Hill.Android.A.Programmers.Guide.Jul.2008  

Android ™ A Programmer’s Guide This page intentionally left blank A Programmer’s Guide J.F. DiMarzio New York Chicago San Francisco Lisbon L...

Advertisement