Calendar crash on Android when a full day appointment has its enddate not set.

2 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    7 posts
    Member since:
    Feb 2013

    Posted 11 Oct Link to this post

    On Android, if you add an appointment with IsAllDay = true, a StartDate and no EndDate, the calendar crashes.

    On iOS it works fine.

     

    10-11 16:29:34.985 16108 16108 I MonoDroid: Java.Lang.IllegalArgumentException: endDate should be after startDate.
    10-11 16:29:34.985 16108 16108 I MonoDroid:   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <368820a9888f43ddb85d18e87189adbf>:0
    10-11 16:29:34.985 16108 16108 I MonoDroid:   at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x000a7] in <a043032cf94a485190047a14918b9f60>:0
    10-11 16:29:34.985 16108 16108 I MonoDroid:   at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (System.IntPtr jobject, System.IntPtr jclass, System.IntPtr jmethod, Android.Runtime.JValue* parms) [0x00015] in <8da21ca2c66a4b21b1bf81e3fc30ec56>:0
    10-11 16:29:34.985 16108 16108 I MonoDroid:   at Android.Runtime.JNIEnv.FinishCreateInstance (System.IntPtr instance, System.IntPtr jclass, System.IntPtr constructorId, Android.Runtime.JValue* constructorParameters) [0x0000b] in <8da21ca2c66a4b21b1bf81e3fc30ec56>:0
    10-11 16:29:34.985 16108 16108 I MonoDroid:   at Com.Telerik.Widget.Calendar.Events.Event..ctor (System.String p0, System.Int64 p1, System.Int64 p2) [0x0010f] in <babf1532dd9040a8b431b4680ee1bd3b>:0
    10-11 16:29:34.985 16108 16108 I MonoDroid:   at Telerik.XamarinForms.InputRenderer.Android.CalendarAdapter+<>c.<CreateEvents>b__18_0 (Telerik.XamarinForms.Input.IAppointment appointment) [0x0002c] in <35ac910fa1204c63911bd40cabbaf182>:0

  2. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 14 Oct Link to this post

    Hi Benjamin,

    Thank you for contacting us.

    In order to create an Appointment current implementation requires to set explicitly correct StartDate and EndDate, so getting an exception in the case where the EndDate is omitted is "almost expected". We agree that in the case of "AllDay" appointment EndDate could be omitted safely, but currently RadCalendar doesn't support this scenario.

    Regards,
    Vladislav
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top