Exemplo n.º 1
0
        public void Notify(Context context)
        {
            CreateNotificationChannel(context);

            var washdays = mAlarmController.GetTodayWashDays();

            if (washdays.Count == 0)
            {
                AndroidLog.WriteLog("Today is no washing day");
                return;
            }

            foreach (var wd in washdays)
            {
                AndroidLog.WriteLog($"Today is washday: {wd.Name} ");
                mAlarmController.SetAlarmShown(wd.ID);
                SendNotify(context, wd.ID, HairAppBl.Resources.AppResource.TimeForHairCare, $"{HairAppBl.Resources.AppResource.TodayIs} {wd.Name}");
            }
        }
Exemplo n.º 2
0
        protected override void OnDestroy()
        {
            AndroidLog.WriteLog("MainActivity destroy");

            base.OnDestroy();
        }