Welcome to the official BlackBerry Support Community Forums.


inside custom component

Native Development

New Contributor
Posts: 7
Registered: ‎05-09-2013
My Device: Blackberry z10
Accepted Solution

Does blackberry 10 have a clockupdated() event?

Does blackberry 10 have something like a clockupdated() event or something similar that is called every minute.Even if there is something that is called after every 10 or 20 minutes is good enough for me.I want my app to subscribe to that even so that it can perform some tasks after every few minutes.Previous versions of blackberry had a clockupdated event and a realtime clock listener which was used by my app to perform a task every minute.


Any help is appreciated.

Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

Re: Does blackberry 10 have a clockupdated() event?

As you already found out, this can be done using QTimer, but it's unreliable. Events can be discarded and not fired if the event loop was busy and they couldn't be delivered on time. If you need this event to occur reliably, some sort of workaround has to be applied. For example, fire the timer more often and in it's handler check if the event was performed during last 20 minutes, storing the timestamp of last performed event.

Andrey Fidrya, @zmeyc on twitter