1.5. Installing PRC on POSE

We are just going over the bare bones basics of POSE here; this is just enough to get you started. We'll cover POSE in much more detail in Chapter 7, Debugging Palm Applications. Feel free to jump ahead if you want more information, otherwise you can wait.

Note

We discuss POSE version 3.2. Later versions will almost certainly emulate additional devices. The latest version of POSE can be downloaded from www.palmos.com/dev/tech/tools/emulator/

1.5.1. Get Your ROM Image

Although POSE emulates the hardware device, it still needs the OS itself, which is found on a ROM within an actual hardware device. There are two ways to obtain a ROM image:

We covered these two methods for obtaining an actual ROM in “POSE and ROM Images” on page 96 and “Retrieving A ROM from a handheld” on page 96.

1.5.2. Installing the Sample Application

The easiest way to install an application is to drag the PRC file onto the Emulator window. An alternative is to use the “Install Application / Database” menu item.

Regardless of which method you use, there is a weird update problem to be aware of. If the POSE device is running the Application launcher when you install the application, then the application icon will not appear until you launch another program. At this point, when you return to the application launcher your application will appear.

This occurs because the Application launcher has no way of knowing that POSE has just installed a new application onto the (emulated) handheld. Restarting the Application launcher, forces it to look again at the applications that exist. At this point, it now sees the new one (see Figure 4-28). The easiest way to deal with this problem is to quickly switch to a different application (like Calc), and then switch back to the Application launcher.

Figure 1-18. The application showing in the Application launcher

Tap on the new application in the application launcher to run it (see Figure 4-29).

Figure 1-19. Running our application on POSE