Ejemplo n.º 1
0
        public bool StopService()
        {
            var intent = new Android.Content.Intent(context, typeof(MyService));

            bool result = context.StopService(intent);;

            SetServiceActive(context, false);
            NotificationHelper.RemoveMinAlarmNotification();
            NotificationHelper.RemoveMaxAlarmNotification();

            return(result);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Timer stoppen und Min/Max-Notification entfernen
 /// </summary>
 static void timerStopAndRemoveNotifications()
 {
     stopTimer();
     NotificationHelper.RemoveMinAlarmNotification();
     NotificationHelper.RemoveMaxAlarmNotification();
 }