05-09-2013 03:38 AM
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.
Solved! Go to Solution.
05-09-2013 07:26 AM
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.