I have a timer in one of my activities that shows an alert dialog every minute. This works fine on the activity it is created on but what I need is it to continue showing every minute despite what activity I have open.
Any ideas how I'd do that?
Heres my timer and alert dialog.
private void OnTimedEvent(object source, System.Timers.ElapsedEventArgs e)
okbuttonpressed = false;
Activity activity = this;
Android.App.AlertDialog.Builder builder = new AlertDialog.Builder (activity);
alertDialog = builder.Create ());
alertDialog.SetTitle ("Welfare Alert"));
alertDialog.SetMessage ("Alert triggered"));
alertDialog.SetButton("OK", (s, ev) =>
okbuttonpressed = true;