How do I remove a timer made using Androids AlarmClock class?

Hello, first post here!

Stuck on something I thought might be relatively simple.

I would like to remove a timer that I made using the AlarmClock class before the timer counts down to 0.

I create a timer by using this (c#)

    private void StartAlarmClockTimer()
    {
        Intent alarmIntent = new Intent(Android.Provider.AlarmClock.ActionSetTimer);
        alarmIntent.PutExtra(Android.Provider.AlarmClock.ExtraLength, 5);
        alarmIntent.PutExtra(Android.Provider.AlarmClock.ExtraVibrate, true);
        alarmIntent.PutExtra(Android.Provider.AlarmClock.ExtraMessage, "Custom Text!");
        alarmIntent.PutExtra(Android.Provider.AlarmClock.ExtraSkipUi, true);
        alarmIntent.AddFlags(ActivityFlags.NewTask);
        StartActivity(alarmIntent);
    }

Thanks

Sign In or Register to comment.