Sun Microsystems J2ME manual Pausing and Resuming, Adjusting the emulator’s performance

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 47
Image 47

FIGURE 19 Adjusting the emulator’s performance

Adjust the Graphics primitives latency to have an effect on the amount of time that elapses between your application’s calls to drawing methods in the Graphics class and when the drawing actually takes place.

To change the screen characteristics, choose one of the Display refresh types. If you choose a Periodic type, you will also need to specify the Refresh Rate.

To simulate the slower speed of a real device, check Enable VM speed emulation and choose the speed you want.

You can adjust the simulated network speed by checking Enable network throughput emulation and choosing a speed.

4.4Pausing and Resuming

MIDlets have a life cycle that is defined by the MIDP specification. MIDlets can be started and stopped by the device. Furthermore, external events like incoming phone calls can cause the device to pause a MIDlet.

The emulator provides a simple mechanism to pause and resume running MIDlets. This is very helpful for testing your application’s behavior when it is paused.

Chapter 4 Using the Emulator 35

Page 47
Image 47
Sun Microsystems J2ME manual Pausing and Resuming, Adjusting the emulator’s performance