Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
R_Bell
Posts: 4
Registered: 02-16-2011

RealtimeClockListener question.

Aside from changing the time or date on the phone myself, does anyone know of any applications that would change the time or date on the phone?  Even more troubling is it would need to do it in a way that keeps the correct time and date, but still fire off the clockUpdated method.

 

I have implemented the clockUpdated method and I have it counting the system minute updates, but it is over counting.  I cannot tell if another application is causing this, or if the system double counts a minute every twelve hours or what.  When I run it on a the simulator and set the clock to 11:55pm, it does not double count the minute from 11:59PM to 12:00AM.  So I am really in a bind and any direction on this would be a great help.

 

Thanks,

Ross

 

 

Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: RealtimeClockListener question.

I have used clockUpdated in the RealtimeClockListener for years and never had a problem with it.  That said, I do not use it as a counter, I use it to confirm that things have happened and/or to update clock values. 

 

You might have to watch out for TimeZone changes and user Date changes, which I think you can listen for using a GlobalEventListener. 

Please use plain text.