We've got an application that places dots in a month view where calendar events occur. We're using the calendar content provider to polulate the view.
The only problem is we query the content provider around 30 times per month: 1 - 30 november. So we get the correct number of instances per day. This way the content provider itself utilizes recurrence rules and 'multi-day' events. For instance: We have an event that takes place from 4 - 9 november. Querying the content provider on a daily basis we'll get the event back at: 4, 5, 6, 7, 8 and 9 november. This is obviously correct. But this has a very negative effect on the performance. On the other hand if I query just once: 1-30 nov, I'll only get the same event back just once. So I need to do some calculations on my own to define in which cells the event should appear.
So then, I was wondering if there is an helper or utility that does this for me: 1 query: But 5 times a seperate instance for an event that occurs more then once in that timespan.