android - java.text.parse Exception using google-rfc-2445 library -


i using google-rfc-2445 library determine next meeting days meeting pull user's calendar on android device. example format recurrence rule :

freq=weekly;until=20140826t223000z;wkst=mo;byday=tu   

i'm using dateiteratorfactory.createdateiterator() determine next meeting date. if turn strict mode off, beginning date of meeting that's returned. strict mode on, nothing returned , when read through log, see error message says :

"java.text.parseexception: freq=weekly;until=20140826t223000z;wkst=mo;byday=tu 

(at offset 0)".

any ideas? i'll list code below, example sake, use system time in example.

    rrule = "date start = new date(system.currenttimemillis());"     date start = new date(system.currenttimemillis());     timezone dt = timezone.getdefault();     // next notification     date f = null;     try {         dateiterator di = dateiteratorfactory.createdateiterator(rrule, start, dt, true);     } catch (parseexception e) {         e.printstacktrace();     }      system.out.println("next = " + f); 

i figured out problem. had append "rrule:" beginning of recurrence rule string.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -