如何在黑莓中处理外部和内部事件(转换的j2me代码-jar到cod)
我在j2me中开发了游戏,并将jar转换为cod。它在黑莓设备上运行良好。但是 hideNotify()
方法正在工作,所以我无法处理 redkey、callevents 等。
在游戏中,我放置了背景声音,当我按下 redkey 时,它会转到主屏幕,但应用程序未关闭并且背景声音连续播放。
如何使用j2me代码处理黑莓中的事件?
I developed the game in j2me and I converted jar to cod. It's working fine in blackberry device. But hideNotify()
method is working, so I not able to handle redkey, callevents etc.
Inside the game play, I placed background sound, when I pressed redkey, it goes to home screen but application not closed and background sound runs continuously.
How to handle events in blackberry using j2me code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要处理 BB 事件,您必须
导入
net.rim...
库而不是javax.microedition...
,这意味着您将不得不再次编写事件处理。 J2ME 事件处理程序与 BB 的不同,BB 无法识别它们。所以你可以在BB中运行jar文件,但你不能拥有完整的功能。To handle BB events, you'll have to
import
net.rim...
libraries instead ofjavax.microedition...
, which means you'll have to write event handling again. J2ME event handlers are different from BB's and BB does not recognize them. So you can run a jar file in a BB but you can not have the complete functionality.