2

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,

bharath
  • 14,283
  • 16
  • 57
  • 95
Kanishka
  • 143
  • 1
  • 1
  • 12
  • 1
    are you using any kind of GUI , like J2ME Polish ? – Lucifer Nov 15 '11 at 06:45
  • Are you loading the list element in `startApp()`? – Stephen O'Connor Nov 15 '11 at 12:01
  • Did you try to download Samsung Java SDK 1.2.2(http://innovator.samsungmobile.com/down/cnts/toolSDK.detail.view.do?platformId=3&cntsId=7985&nacode=) and see if you can get this device connected in debug mode with your IDE. However I only did this on Sony Ericsson devices that been reasonable easy to connect through SE dev tools – peter_budo Nov 15 '11 at 16:57

1 Answers1

1

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

gnat
  • 6,213
  • 108
  • 53
  • 73