示例#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);
        }
示例#2
0
        public static void Update(Context context, int[] appWidgetIds = null)
        {
            var nextAlarm = NextAlarm.ObtainFromSystem(context);

            Update(context, nextAlarm, appWidgetIds);
        }