Notification Service for Blackberry OS 4.5 application

佐手、 提交于 2019-11-30 20:08:21

问题


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.

I am developing in os version 4.5.


回答1:


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:

  • play a sound
  • trigger the vibration
  • trigger a customizable notification (so the user can decide)
  • change the application icon
  • paint a text on the application icon
  • change the application title

how to show notification icon in v4.2 to v4.5 versions

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

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



来源:https://stackoverflow.com/questions/1465259/notification-service-for-blackberry-os-4-5-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!