Beispiel #1
0
 void IEventNotification.RegisterEvent(DateTime eventDate, Action action)
 {
     //          oder Implementierung  über alarmManager (dann auch wenn App offline)
     //			http://stackoverflow.com/questions/24196890/android-schedule-task-to-execute-at-specific-time-daily
     Handler h = new Handler ();
     var ms = SystemClock.UptimeMillis ();
     var msSinceUpTime = eventDate.MsSinceUpTime (ms);
     h.PostAtTime (action, msSinceUpTime);
     Diag.Debug.WriteLine ("Event in  " + msSinceUpTime + " and " + eventDate.ToString ());
 }