Midlet 对旧触摸屏手机中的触摸没有响应
我对 j2me 很陌生。我开发了一个基本的短信银行应用程序。我的应用程序适用于大多数触摸和非触摸设备手机(Samsung duo、Monte、Nokia 6120c …、Sony Ericson w300)。但当我将其安装在三星 SGH-D980 中时,它安装并启动正常。但是作为我加载启动屏幕后的第一个屏幕的列表元素不响应触摸。我使用 Net beans 7.0.1 开发了该应用程序,并使用 CLDC 1.0 和 MIDP 2.0。我已经尝试过 defaultfxtouchphone 模拟器,并且运行良好。我的问题是为什么它可以在某些触摸手机上工作,但不能在上面提到的触摸手机上工作。谢谢你,
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,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上,任何其他手机上的 MIDlet 都可以使用触摸事件,这对您来说没有任何意义。
MIDP 规范 (JSR 118) 并不强制实现进行触摸(指针)事件可用于 MIDlet,甚至适用于触摸设备。根据提供的数据Club-java页面,SGH-D980正是如此:
一旦设备允许以非触摸方式处理您的列表(您没有写任何内容表明不是这样),就没有问题 - 您只能忍受这一点。
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:
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.