Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Use the <code>Instances</code> table if you need to locate recurring events.</p> <p>The URIs for querying it are:</p> <ul> <li><code>instances/when/*/*</code> - All instances between two times (milliseconds)</li> <li><code>instances/whenbyday/*/*</code> - All instances between two times (days)</li> <li><code>instances/groupbyday/*/*</code> - Same as <code>whenbyday</code>, but grouped by the start day</li> </ul> <p>The list of columns in that table are:</p> <ul> <li><code>_id</code> - The ID of this instance</li> <li><code>event_id</code> - The event it was created from</li> <li><code>begin</code> - Begin time (milliseconds)</li> <li><code>end</code> - End time (milliseconds)</li> <li><code>startDay</code> - Start day of instance</li> <li><code>endDay</code> - End day of instance</li> <li><code>startMinute</code> - Minutes since midnight (0..1440)</li> <li><code>endMinute</code> - Minutes since midnight</li> </ul> <p>You can also use the columns from the <code>Events</code> and <code>Calendar</code> tables.</p> <p>You can see an example on the same page that you linked: <a href="http://jimblackler.net/blog/?p=151" rel="noreferrer">http://jimblackler.net/blog/?p=151</a></p> <p>Example:</p> <pre><code>String[] projection = new String[] { "title", "description", "begin", "eventLocation" }; String selection = "calendar_id = " + calID; String path = "instances/when/" + (now - window) + "/" + (now + window); String sortOrder = "begin DESC"; Cursor managedCursor = getCalendarManagedCursor( projection, selection, path, sortorder); </code></pre> <hr> <p><strong>Edit:</strong> It seems Google got around to document the Calendar Provider. Browse to <a href="http://developer.android.com/guide/topics/providers/calendar-provider.html" rel="noreferrer">Calendar Providier | Google Developers</a> for more information.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload