j2me中如何做推送通知?
我想在 j2me 应用程序中实现推送通知。 在这种情况下,当我从网络服务获取特定值时希望保留通知。
我从未做过此功能。任何人都可以帮助我如何在特定时间间隔获取通知消息。
I want to implement push notification in j2me application.
In this the want to keep notification when i get the certain value from the web service.
I had never done this functionality.Can anyone please help me how to get the notification message at particular time interval.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Java ME 手机没有用于推送通知的常规平台。至少不像苹果在 iOS 中那样。你到底想做什么?您是否需要在应用程序未运行时收到通知?因为这在大多数支持 Java ME 的手机中是不可能的......
Java ME phones don't have a regular platform for push notifications. At least not like Apple does in iOS. What exactly are you trying to do? Do you need your notifications to arrive when your app is not running? Because that's impossible in most phones supporting Java ME...
您可以使用 Alert For 如本示例所示。如果您需要在特定时间间隔后发出警报,那么您必须为其连续运行创建
Thread
。我想在这里提到的一件事是,只有当您的应用程序正在运行时,这才是可能的。You can use Alert For that as shown in this Example. If you need Alert after a particular time interval then you have to create
Thread
s for that which will run continuously. One thing I want to mention here is that this is possible only when your application is running.