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); }
/// <summary> /// Timer stoppen und Min/Max-Notification entfernen /// </summary> static void timerStopAndRemoveNotifications() { stopTimer(); NotificationHelper.RemoveMinAlarmNotification(); NotificationHelper.RemoveMaxAlarmNotification(); }