문제

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 ?

도움이 되었습니까?

해결책

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."

다른 팁

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
  }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top