MIDP 2.0推送注册表 [英] MIDP 2.0 push registry

查看:84
本文介绍了MIDP 2.0推送注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们想使用MIDP2.0推送注册表定期调用我们的MIDLet,以检查来自服务器的新消息.如果另一个MIDLet已在前台运行,是否可以同时调用我们的MIDLet?行为会因设备而异(例如诺基亚S-60,摩托罗拉,三星,LG)吗?

We would like to use MIDP2.0 push registry to invoke our MIDLet at regular interval to check for new messages from server. If another MIDLet is already running in the foreground will our MIDLet be able to be invoked simultaneously? Will the behavior vary from device to device (e.g. Nokia S-60, Motorola, Samsung, LG)?

推荐答案

行为肯定会有所不同.某些设备无法处理多任务(例如诺基亚的Series 40设备),我非常怀疑在这些设备上运行另一个MIDlet时,PushRegistry将调用您的应用程序.实际上,我什至不确定在支持多任务的设备(例如SonyEricsson)上是否会从另一个正在运行的MIDlet中调用您的MIDlet(并且可能会窃取前景).根据我在Java ME平台上的经验,这正是遭受设备碎片困扰的功能.

Behavior will definitely vary. Some devices can't handle multitasking (e.g. Nokia's Series 40 devices) and i highly doubt that your application will be invoked by PushRegistry while another MIDlet is running on those devices. Actually I'm not even sure that your MIDlet will be invoked (and could steal the foreground) from another running MIDlet on devices that do support multitasking (e.g. SonyEricsson). From my experience with the Java ME platform this is exactly the kind of feature that would suffer greatly from device fragmentation.

这篇关于MIDP 2.0推送注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆