Domanda

Esiste un ascoltatore nell'API del bordo che può rilevare che l'utente ha modificato le impostazioni della data / ora del suo dispositivo BlackBerry?Ho bisogno di prendere questo evento come posso fare questo?

È stato utile?

Soluzione

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

Altri suggerimenti

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
  }
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top