问题
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