问题
I want to write a Java BlackBerry application that runs on startup and stays running in the background, but gives the user an indication that it is running with an icon in the corner of the homescreen. What techniques can I use?
回答1:
For showing content on the home screen / status bar, see this thread. You can either have different states on your own application icon or add a notification in the BB status bar. All is explained there.
回答2:
right click on blackberry project ->properties->applicaiton tab
- keeps in background: create Appliation type project.
- blackberry application that runs on startup:check option "autorun on startup".
- but gives an indication that it is running with an icon in corner: which corner you are talking about?
回答3:
The blackberry button sits to the left of the trackball/trackpad, or to the left of the return button on the storm. If you press and hold the blackberry button, the OS will show all running apps in a popup. Do you need a more significant notification that the app is running?
The notification ribbon and the app 'splat' are generally used to show message counts and other activity of interest to the user, not just that your app is running.
来源:https://stackoverflow.com/questions/3977621/run-blackberry-application-on-startup-and-add-notification-that-it-is-running-i