27. Know Where You Are

AS mobile phones continue to get smaller and cheaper, manufacturers are able to cram more into them. One interesting capability that is making its way into mobile phones is Global Positioning System (GPS). A GPS receiver provides the mobile phone a way to know its own location. This means that your MIDlets can now combine the awesome power of the Internet with the awesome power of GPS. From a programming perspective, it’s easy to write applications to find the nearest Starbucks or display your current location on a map at a social networking Web site.

GPS isn’t the only way to determine location, but it’s probably the most popular. Mobile phones can also use the location of the nearest cell tower to determine location, ...

Get Kicking Butt with MIDP and MSA: Creating Great Mobile Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.