Archive for July, 2006

Using RMS to Store Persistent Data

Sunday, July 16th, 2006

There are times when you will want your MIDlet to be able to store data that is persistent across multiple executions of the application. In the context of video games, for example, you may want to save the high scores, or retain the game state so that the player can continue later. In this tutorial, we will look at how to use a component of MIDP called Record Management System, or RMS, as a means of storing persistent application data.

(more…)

Handling Key Events

Wednesday, July 5th, 2006

Java ME supports several input mechanisms. In a previous tutorial, we looked at the high-level commands as a means of accepting input from the user. This time, we will look at low-level key events, which are handled through the keyPressed() and keyReleased() methods. We will also look at how to use these methods in a highly interactive game or application.

(more…)