| java.lang.Object | |
| ↳ | android.provider.CalendarContract.Calendars |
Constants and helpers for the Calendars table, which contains details for individual calendars.
CALLER_IS_SYNCADAPTER should be set to true and
ACCOUNT_NAME and ACCOUNT_TYPE must be set in the Uri
parameters. See
appendQueryParameter(java.lang.String, java.lang.String)
for details on adding parameters. Sync adapters have write access to more
columns but are restricted to a single account at a time. Calendars are
designed to be primarily managed by a sync adapter and inserting new
calendars should be done as a sync adapter. For the most part, apps
should only update calendars (such as changing the color or display
name). If a local calendar is required an app can do so by inserting as a
sync adapter and using an ACCOUNT_TYPE of
ACCOUNT_TYPE_LOCAL .
_ID of the calendar
should be provided either as an appended id to the Uri (
withAppendedId(Uri, long)) or as the first selection item--the
selection should start with "_id=?" and the first selectionArg should be
the _id of the calendar. Calendars may also be updated using a selection
without the id. In general, the ACCOUNT_NAME and
ACCOUNT_TYPE should not be changed after a calendar is created
as this can cause issues for sync adapters.
_ID as an appended id
on the Uri or using any standard selection. Deleting a calendar should
generally be handled by a sync adapter as it will remove the calendar
from the database and all associated data (aka events)._ID
is appended to the Uri.ACCOUNT_NAMEACCOUNT_TYPECALENDAR_COLOR_SYNC_IDDIRTYOWNER_ACCOUNTMAX_REMINDERSALLOWED_REMINDERSCAN_MODIFY_TIME_ZONECAN_ORGANIZER_RESPONDCAN_PARTIALLY_UPDATECALENDAR_LOCATIONCALENDAR_TIME_ZONECALENDAR_ACCESS_LEVELDELETEDCAL_SYNC1CAL_SYNC2CAL_SYNC3CAL_SYNC4CAL_SYNC5CAL_SYNC6CAL_SYNC7CAL_SYNC8CAL_SYNC9CAL_SYNC10| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | CALENDAR_LOCATION | The default location for the calendar. | |||||||||
| String | DEFAULT_SORT_ORDER | The default sort order for this table | |||||||||
| String | NAME | The name of the calendar. | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.provider.BaseColumns
| |||||||||||
From interface
android.provider.CalendarContract.CalendarColumns
| |||||||||||
From interface
android.provider.CalendarContract.CalendarSyncColumns
| |||||||||||
From interface
android.provider.CalendarContract.SyncColumns
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CONTENT_URI | The content:// style URL for accessing Calendars | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The default location for the calendar. Column name.
Type: TEXT
The default sort order for this table
The name of the calendar. Column name.
Type: TEXT
The content:// style URL for accessing Calendars