CalendarContract repeatable event?

LarsBoerboomLarsBoerboom ✭✭USMember ✭✭
edited September 6 in Xamarin.Android

Is it possible to create an agenda event that is repeatable on a yearly base?
Like the agenda options of goole you can set that the event is repeatable with the options weekly, monthly or yearly.

Thank you

Answers

  • LeonLuLeonLu Xamurai Member, Xamarin Team Xamurai

    You can use Timer to achieve that.

     using System.Threading
    
      TimerCallback timerDelegate = new TimerCallback(Tick);
      Timer timer = new Timer(timerDelegate, null, 0, 31536000000); //every year to execute this method.
    
      public void Tick(object state)
        {
            this.RunOnUiThread(() =>
            {
                Toast.MakeText(ApplicationContext,"sssss",ToastLength.Short).Show();
            });
    
        }
    
  • LarsBoerboomLarsBoerboom ✭✭ USMember ✭✭

    You can use Timer to achieve that.

    using System.Threading

      TimerCallback timerDelegate = new TimerCallback(Tick);
      Timer timer = new Timer(timerDelegate, null, 0, 31536000000); //every year to execute this method.
    
      public void Tick(object state)
        {
            this.RunOnUiThread(() =>
            {
                Toast.MakeText(ApplicationContext,"sssss",ToastLength.Short).Show();
            });
    
        }
    

    Sorry thanks for the answer but thats not what I'm asking I have edited my post to make it a bit more detailed.

  • LeonLuLeonLu Xamurai Member, Xamarin Team Xamurai

    Do you want to make a agenda event that could book a plan in the google calender ?

  • LarsBoerboomLarsBoerboom ✭✭ USMember ✭✭

    Yes exactly

  • LeonLuLeonLu Xamurai Member, Xamarin Team Xamurai
    edited October 11
Sign In or Register to comment.