Joe Asks

^ Does GPS Let Anyone Snoop on My Location?

No. GPS receivers are just that—receivers. The GPS chip, and thus any program running in your Android device, knows where it is. But unless one of those programs deliberately transmits that information, nobody can use it to find you.

In addition to GPS, Android also supports calculating your position using information from nearby cell phone towers, and if you're connected to a wifi hotspot, it can use that too. Keep in mind that all these location providers are unreliable to some extent. When you walk inside a building, for example, GPS signals can't reach you.

To demonstrate Android's location services, let's write a test program that simply displays your current position and keeps updating it on the screen as you move around. You can see the program in Figure 8.1, on the next page.

0 0

Post a comment