I've just installed a previously working app using the calendar2 (version: 1.12) library onto a Nexus 7 (2012) tablet with Lollipop. I changed the manifest to include
as recommended.
Unfortunately when I used the call below to get a list of Calendar events, none were returned.
This is from the log:
Is this a known issue - am I doing something wrong?
The previous code correctly locates 3 potential calandars.
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
as recommended.
Unfortunately when I used the call below to get a list of Calendar events, none were returned.
B4X:
Dim StartDate As String, EndDate As String
StartDate=DateTime.Add(DateTime.Now,0,0,-1)
DateTime.DateFormat="dd MMM yyyy"
DateTime.TimeFormat="HH:mm"
Log("Start date is " & DateTime.Date(StartDate))
'Make sure time starts at Midnight
StartDate=DateTime.DateParse(DateTime.Date(StartDate))
DateTime.DateFormat="dd MMM yyyy"
EndDate=DateTime.Add(StartDate,0,0,3)
Log("End date is " & DateTime.Date(EndDate))
mycalendarlist = cal.GetListofEventsforCalendarBetweenDates(CalendarNumber,StartDate,EndDate)
Log("Number of events in Calendar " & mycalendarlist.Size)
This is from the log:
Start date is 04 Dec 2014
End date is 07 Dec 2014
Number of events in Calendar 0
Is this a known issue - am I doing something wrong?
The previous code correctly locates 3 potential calandars.