黑莓OS 4.5的应用程序通知服务 [英] Notification Service for Blackberry OS 4.5 application

查看:184
本文介绍了黑莓OS 4.5的应用程序通知服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发类似的电子邮件application.Whenever新的消息的应用程序时收到我的通知服务应该通过更新图标指示更改用户,另外,通知服务应时间可持续听取服务器传入的事件。

I am developing an application similar to email application.Whenever new message is received my notification service should indicate change to user by updating icon,also, the notification service should continuosly listen to server for incoming events.

我在OS 4.5版开发。

I am developing in os version 4.5.

推荐答案

有在RIM OS&LT没有ApplicationIndicator; 4.6(见BB论坛主题)

There is no ApplicationIndicator in RIM OS < 4.6 (see bb forum thread)

您有几种选择通知
  用户(它们都不是指示器,
  不幸)。您可以:

you have several options to notify the user (none of them is the indicator, unfortunately). you can:


      
  • 播放声音

  •   
  • 触发振动

  •   
  • 触发一个可定制的通知(使用户可以决定)

  •   
  • 更改应用程序图标

  •   
  • 在应用程序图标绘制文本

  •   
  • 更改应用程序的标题

  •   

如何显示通知图标V4.2到V4.5版本


  • 播放声音与<一个href=\"http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/system/Alert.html#startVibrate%28int%29\"相对=nofollow> Alert.startAudio

  • 更改应用程序使用图标<一个href=\"http://www.blackberry.com/developers/docs/4.5.0api/net/rim/blackberry/api/homescreen/HomeScreen.html#updateIcon%28net.rim.device.api.system.Bitmap%29\"相对=nofollow> HomeScreen.updateIcon

  • 与<α
  • 更改应用程序名称href=\"http://www.blackberry.com/developers/docs/4.5.0api/net/rim/blackberry/api/homescreen/HomeScreen.html#setName%28java.lang.String%29\"相对=nofollow> HomeScreen.setName

  • 触发振动与<一个href=\"http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/system/Alert.html#startVibrate%28int%29\"相对=nofollow> Alert.startVibrate

  • Play sound with with Alert.startAudio
  • Change application icon with HomeScreen.updateIcon
  • Change app name with HomeScreen.setName
  • Trigger vibration with Alert.startVibrate

是的,交换两个应用之间的数据,最好使用<一个href=\"http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/What%5FIs%5F-%5FGlobal%5FEvents%5Fand%5FGlobal%5FEvent%5FListeners.html?nodeid=800527&vernum=0\"相对=nofollow> GlobalEventListener

And yes, to exchange data between two applications it's better to use GlobalEventListener

这篇关于黑莓OS 4.5的应用程序通知服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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