Android Create Calendar Event always as Birthday
<p>I have a strange issue when I create a calendar event programmatically
its always noted as Birthday Calendar (type) I don't have any clue why its noted like that.</p>
<p>My code I use is as below: Xamarin C#</p>
<pre><code>ContentResolver cr = ((Activity)Forms.Context).ContentResolver;
ContentValues values = new ContentValues();
String eventUriString = &quot;content://com.android.calendar/events&quot;;

//Insert Events in the calendar...
values.Put(CalendarContract.Events.InterfaceConsts.CalendarId, 1);
values.Put(CalendarContract.Events.InterfaceConsts.Title, title);
values.Put(CalendarContract.Events.InterfaceConsts.Status, 1);
values.Put(CalendarContract.Events.InterfaceConsts.Description, description);
values.Put(CalendarContract.Events.InterfaceConsts.Dtstart, GetDateTimeMS(year, month, day, hour, minute));
values.Put(CalendarContract.Events.InterfaceConsts.Dtend, GetDateTimeMS(year, month, day, hour, minute));
values.Put(CalendarContract.Events.InterfaceConsts.AllDay, allday ? &quot;1&quot; : &quot;0&quot;);
values.Put(CalendarContract.Events.InterfaceConsts.HasAlarm, hasalarm ? &quot;1&quot; : &quot;0&quot;);
values.Put(CalendarContract.Events.InterfaceConsts.EventColor, Android.Graphics.Color.Green);
values.Put(CalendarContract.Events.InterfaceConsts.EventTimezone, &quot;GMT+&quot; + zone + &quot;:00&quot;);
values.Put(CalendarContract.Events.InterfaceConsts.EventEndTimezone, &quot;GMT+&quot; + zone + &quot;:00&quot;);
cr.Insert(Android.Net.Uri.Parse(eventUriString), values);
</code></pre>
<p>Please does someone has any tips or ideas which can point me to the right direction?</p>
<p>Thanks in advance.</p>