BlackBerry Device Date/Time Update Listener?
-
14-11-2019 - |
문제
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
}
}
제휴하지 않습니다 StackOverflow