Home > Articles > Networking > Wireless/High Speed/Optical

  • Print
  • + Share This
This chapter is from the book

Decks, Cards, and Links

Now that you've defined a project, you can start creating the decks, cards, and links that make up the application. Before starting, let's get familiar with the WAP lingo.

Our little "Hello World" application will consist of two decks and a link. The first deck will display a greeting and a link that the user can select for more information. The second deck will display—you guessed it—more information.

What's a Deck?

A deck is the basic building block of wireless applications; it is a WML or HDML file containing one or more cards that are displayed on a wireless device. Like an HTML file, it can be identified by a URL; for example:


And a Card?

A card represents one screen of information in a wireless application. It can display formatted text or prompt a user for information. In MobileDev, when you create a deck, a default card is also created. Figure 3.2 shows a card as it will appear in the phone simulator.

What About Links?

A link is an action—usually a connection to another deck or card—that occurs when the user presses a selection key, chooses an item from a list, enters, or leaves a card. The MobileDev Link Wizard lets you create many kinds of links, corresponding to the different links available in WML and HDML.

Figure 3.2 The first card in a wireless application usually identifies the program.

  • + Share This
  • 🔖 Save To Your Account