Touch Event Programing on MIDP2.0

There is some difficulties running some of MIDP applications on Nokia 5800XM. Because 5800XM only has a few hardware keys. Native S60 5th applications utilize touch screen of 5800XM, but ordinal MIDP applications do not.

I just tested how we can use touch events of 5800XM on MIDP2.0 applications.

Canvas class of MIDP2.0 has call back API entries pointerPressed(int x, int y), pointerReleased(int x, int y) and pointerDragged(int x, int y). And also boolean hasPointerEvents() to check those event APIs on the device. Those API entries are designed for any kind of pointing devices. Touch screen is just one of them.

This is very simple, but effective. I setup the code to write iPointX and iPointY values to the screen in paint routine. This works fine on S60 5th emulator.

Therefore, if we draw virtual keys or buttons on the screen and MIDP program can recognized them by touch event API like pointerReleased. We can use this mechanism to start specific application behavior instead of 10 keys.

ptsNotes S60 3rd

The ptsNotes is a software solution to manage a lot of notes (memos) efficiently. Data can be inputted on the mobile phone, and refer them very easily. This is a completed solution by the mobile phone including the database backup and restoration function.

We also offer ptsNotes Windows version with the database compatibility. Therefore, you can input data to the database very easily with Windows PC and refer the same data with the mobile phone.