Beispiel #1
0
        public override void OnReceive(Context context, Intent intent)
        {
#if DEBUG
            Toast.MakeText(context, "Received tap intent!", ToastLength.Short).Show();
#endif
            var nextAlarm = NextAlarm.ObtainFromSystem(context);
            nextAlarm.Show(context);
            WidgetsUpdater.Update(context, nextAlarm);
        }
Beispiel #2
0
        public static void Update(Context context, int[] appWidgetIds = null)
        {
            var nextAlarm = NextAlarm.ObtainFromSystem(context);

            Update(context, nextAlarm, appWidgetIds);
        }