1

Is there a listener in RIM API which can detect that the user has changed the Date/Time settings of his Blackberry device ? I need to catch this event how could i do this ?

Ashraf Bashir
  • 9,686
  • 15
  • 57
  • 82

2 Answers2

3

There is a list of documented global events sent by the OS. On this list, I see one for "Date Changed" and one for "Time Zone Changed."

Scott W
  • 9,742
  • 2
  • 38
  • 53
0

you can also try RealtimeClockListener

public class MyApp extends UiApplication implements RealtimeClockListener
{
  public static void main(String[] args)
  {
    ...
  }

  public MyApp()
  {
    addRealtimeClockListener(this);
  }

  public void clockUpdated()
  {
    //it will call every minute
  }
}
Vivart
  • 14,900
  • 6
  • 36
  • 74
  • This isn't a notification for time/date change .... it's like a periodic timer with interval of 1 min. – Ashraf Bashir May 18 '11 at 08:59
  • clockUpdated() Invoked when the date and time is updated. Note that the system actually invokes this method each minute. – Vivart May 18 '11 at 10:51
  • i didn't find any other way to get date/time change notification. So i have used this method to complete my task. – Vivart May 18 '11 at 10:52