BlackBerryデバイスの日付/時刻更新リスナー?
-
14-11-2019 - |
質問
RIM APIにリスナーがあると、ユーザーが自分のBlackBerryデバイスの日付/時刻設定を変更できることを検出できますか?私はこのイベントを捕まえる必要がありますこの方法はどうやってこれを行うことができますか?
解決
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