32.2. Creating WAP ApplicationsBefore diving into the specifics of the WML specification, let's look at some of the general issues and processes of creating WAP content: 32.2.1. A New ModelIf you are accustomed to designing pages for the Web, you will need to adjust (and reduce) your thinking for handheld devices. Due to the limitations in screen size, processing power, and connection speed, normal information-rich web pages are not feasible. In fact, it is useful to abandon the notion of "documents" (information that is displayed and read) and think in terms of "applications" (based on choices and user interaction). WAP applications are typically made up of screenfuls of minimal text and lists of options. Information and interaction design is king as there is virtually no graphic design to be done. Another difference is that unlike the Web, where it is desirable to entice a visitor to linger at your site as long as possible, a successful WAP application can be measured by how quickly the user can find information or make a transaction and get out. 32.2.2. WAP BrowsersMobile devices use special browsing software, sometimes referred to as "microbrowsers" due to their size and capacity, to request and display information from a network. As on the Web, not all WAP browsers are created equal. Older devices with outdated browsers are still in circulation, and what works on one device may not work on another at all. Add to that the fact that the WML specification allows for a range of interpretations of elements and functions, so even browsers that are 100% WML-compliant may have significant differences in their implementation of the standard. Most WAP-enabled devices use the recently renamed Openwave Mobile Browser (formerly called UP.Browser) developed by Openwave (at one time called Unwired Planet, thus "UP"). For a list of devices that use Openwave browsers and their respective versions, see the Openwave Mobile Browser Phone Reference at http://developer.phone.com/resources/phones.html. Not surprisingly, Microsoft has thrown its hat into the wireless ring with its browser, Microsoft Mobile Explorer for cell phones. MME is a dual-mode browser, supporting both WML and HTML content. The list of devices that use MME is growing. For more information on MME, see http://www.microsoft.com/mobile/phones/mme/default.asp. 32.2.3. Handheld DevicesThere are hundreds of mobile devices on the market. Unfortunately, there is no standard hardware configuration, so it is difficult to anticipate just how your application will look and work when it reaches the end user. The following are some device variables WAP developers contend with:
32.2.4. Size LimitationsEach .wml document (called a "deck") within a WAP application has a maximum permitted size of 1400 bytes, although most web developers aim to keep the file size below 500 bytes to improve performance. This size limit refers to compiled decks. Your working documents may be a bit larger, so keep an eye on the compiled size of your file as indicated in the emulator or other development tool. If your deck is larger than 1400 bytes, you must split it logically into separate files. 32.2.5. WAP EmulatorsWAP application developers generally use WAP emulators to test their documents. An emulator (or "simulator") is a program that runs on your computer that shows you how your document will appear and function on a wireless device. It alleviates the need to buy a half-dozen cell phones to test your designs. One of the nifty things about emulators is that they look just like the real thing (see Figure 32-2) -- you can even use the buttons to navigate the way you would on a real phone. Unfortunately, emulators do not always behave exactly like the real thing. Expect some discrepancies in text layout and even basic functionality, so be sure to test on real devices before going live to avoid surprises. Figure 32-2. The Openwave Simulator WAP emulator programThe following are some popular WML emulators and their respective sites for downloading. The Openwave Simulator is the most popular due to the widespread use of the Openwave Mobile Browser and its predecessor, the UP.Browser. All of these programs are Windows-only, so Mac and Unix users are out of luck.
As alternative to a full emulation program, you can view WML pages using one of the web-based emulators at Wapemulator.com (http://www.wapemulator.com) or Gelon.net (http://www.gelon.net). These emulators are limited in their functionality and accuracy, but they give you a good general idea and allow you to view WAP applications from the comfort of your desktop computer.
Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|