I have created a BlackBerry application,
HelloBlackBerry extends UiApplication and it renders the fields and
screen layout stuff.
And I have a class called Notification and it does some notifications.
What I wanted to do is call that Notification class every 1 hour. Like schedule.
But how can I do that, I tried schedule api but no luck,
if anybody can give me a hand,
thanks
Asked
Active
Viewed 56 times
0

Eric
- 1,171
- 2
- 14
- 27
-
Do you want to run your application once per hour, or assuming it's running run a method in Notification once per hour? – Richard Feb 07 '12 at 22:03
-
I just want to run the Notification class once per hour, so it does a random notification every hour... – Eric Feb 07 '12 at 22:11
1 Answers
2
I would recommend that you implement RealtimeClockListener in your Notification class. Register the listener with Application.addRealtimeClockListener(). In clockUpdated test the time to see if the hour has passed and if so run your notification.

Richard
- 8,920
- 2
- 18
- 24