Create a Yahoo! Local MIDlet
Use Java for mobile devices to access the Yahoo! Local API on a mobile device.
The Yahoo! Local Search service allows you to search the Internet for businesses near a specified location. With the availability of a REST web service interface to Yahoo! Local Search, it is quite simple to implement an application that enables mobile devices to access Yahoo! Local Search. It might save you the cost of expensive 411 calls to find out the phone number or the address of a business when you are traveling.
Before you build the hack, it might help to familiarize yourself with a couple of important terms you’ll encounter:
- MIDlet
A MIDlet is a Java application for small devices like cell phones. More specifically, it’s a Java 2, Micro Edition (J2ME™) application that is conformant with the Mobile Information Device Profile (MIDP) specification.
- J2ME
J2ME is a group of Java APIs for creating applications on small devices like cell phones, pagers, PDAs, and set-top boxes.
This hack shows you how to build a MIDlet that allows users to perform local search, implemented over Yahoo! Local Search API, from a mobile device.
What You Need
To use this hack, you’ll need a Handspring Treo 600 running the Web-Sphere Everyplace Micro Environment (WEME), which you’ll find at http://www.palmone.com/us/support/jvm.
You’ll also need the Sun Java Wireless Toolkit Version 2.2, which you can find at http://java.sun.com/products/j2mewtoolkit, and the Eclipse development environment with the ...
Get Yahoo! Hacks 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.