Midlet doesnt respond to touch in older touch screen phone

470 views Asked by At

I am very new to j2me. I have developed a basic SMS Banking app. My app works in most phones which are touch and non touch devices (Samsung duos, Monte, Nokia 6120c …, Sony Ericson w300). But when I installed it in a Samsung SGH-D980 it installs and starts fine. But the list element which is the first screen after my loading splash screen does not respond to the touch. I have developed the app using Net beans 7.0.1 and uses CLDC 1.0 and MIDP 2.0. I have tried the defaultfxtouchphone emulator and works fine on it too. My problem is why does it work on some touch phones but not in the above mentioned touch phone. thank you,

1

There are 1 answers

0
gnat On

The fact that touch events are available to MIDlet at any other phones means nothing in your case.

MIDP specification (JSR 118) does not force implementation to make touch (pointer) events available to MIDlets even for touch device. According to data provided at club-java page, this is exactly the case for SGH-D980:

Touch screen or mouse (hasPointerEvents()) No
Stylus motion events (HasPointerMotionEvents()) No

As soon as device allows to work with your list in non-touch fashion (you wrote nothing that says it ain't so), there is no problem - you just have to live with that.

of course not passing touch events to MIDlets when these are available natively means that MIDP implementation on this device sucks. But that's a different story