Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlerts#inhconstants) \| [Fields](https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlerts#lfields) \| [Inherited Methods](https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlerts#inhmethods)

# CalendarContract.CalendarAlerts

*** ** * ** ***

` public static final class CalendarContract.CalendarAlerts `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/provider/BaseColumns, https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns, https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns, https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.provider.CalendarContract.CalendarAlerts |

<br />

*** ** * ** ***

Fields and helpers for accessing calendar alerts information. These fields are for tracking which alerts have been fired. Scheduled alarms will generate an intent using `https://developer.android.com/reference/android/provider/CalendarContract#ACTION_EVENT_REMINDER`. Apps that receive this action may update the `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE` for the reminder when they have finished handling it. Apps that have their notifications disabled should not modify the table to ensure that they do not conflict with another app that is generating a notification. In general, apps should not need to write to this table directly except to update the state of a reminder.

## Summary

### Inherited constants

From interface `https://developer.android.com/reference/android/provider/BaseColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/BaseColumns#_COUNT`

The count of rows in a directory.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/BaseColumns#_ID`

The unique ID for a row.
From interface `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#ALARM_TIME`

The alarm time of the event, in UTC.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#BEGIN`

The start time of the event, in UTC.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#CREATION_TIME`

The creation time of this database entry, in UTC.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#DEFAULT_SORT_ORDER`

The default sort order for this alerts queries
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#END`

The end time of the event, in UTC.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#EVENT_ID`

The event that the alert belongs to.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#MINUTES`

The number of minutes that this alarm precedes the start time.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#NOTIFY_TIME`

The time that the notification was created by the Calendar app, in UTC.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#RECEIVED_TIME`

The time that the alarm broadcast was received by the Calendar app, in UTC.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE`

The state of this alert.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_DISMISSED`

Once the user has dismissed the notification the alert's state should be set to dismissed so it is not fired again.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_FIRED`

After a notification for an alert has been created it should be updated to fired.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlertsColumns#STATE_SCHEDULED`

An alert begins in this state when it is first created.
From interface `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns` `https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#ALLOWED_ATTENDEE_TYPES`

A comma separated list of attendee types supported for this calendar in the format "#,#,#".
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#ALLOWED_AVAILABILITY`

A comma separated list of availability types supported for this calendar in the format "#,#,#".
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#ALLOWED_REMINDERS`

A comma separated list of reminder methods supported for this calendar in the format "#,#,#".
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_ACCESS_LEVEL`

The level of access that the user has for the calendar

Type: INTEGER (one of the values below)

<br />

`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR`

The color of the calendar.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR_KEY`

A key for looking up a color from the `https://developer.android.com/reference/android/provider/CalendarContract.Colors` table.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_DISPLAY_NAME`

The display name of the calendar.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_TIME_ZONE`

The time zone the calendar is associated with.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_CONTRIBUTOR`

Full access to modify the calendar, but not the access control settings
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_EDITOR`

Full access to modify the calendar, but not the access control settings
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_FREEBUSY`

Can only see free/busy information about the calendar
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_NONE`

Cannot access the calendar
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_OVERRIDE`

not used
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_OWNER`

Full access to the calendar
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_READ`

Can read all event details
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_RESPOND`

Can reply yes/no/maybe to an event
`int` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAL_ACCESS_ROOT`

Domain admin
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAN_MODIFY_TIME_ZONE`

Can the organizer modify the time zone of the event? Column name.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CAN_ORGANIZER_RESPOND`

Can the organizer respond to the event? If no, the status of the organizer should not be shown by the UI.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#IS_PRIMARY`

Is this the primary calendar for this account.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#MAX_REMINDERS`

The maximum number of reminders allowed for an event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#OWNER_ACCOUNT`

The owner account for this calendar, based on the calendar feed.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#SYNC_EVENTS`

Is this calendar synced and are its events stored on the device? 0 - Do not sync this calendar or store events for this calendar.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#VISIBLE`

Is the calendar selected to be displayed? 0 - do not show events associated with this calendar.
From interface `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns` `int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ACCESS_CONFIDENTIAL`

Confidential is not used by the app.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ACCESS_DEFAULT`

Default access is controlled by the server and will be treated as public on the device.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ACCESS_LEVEL`

Defines how the event shows up for others when the calendar is shared.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ACCESS_PRIVATE`

Private shares the event as a free/busy slot with no details.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ACCESS_PUBLIC`

Public makes the contents visible to anyone with access to the calendar.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ALL_DAY`

Is the event all day (time zone independent).
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#AVAILABILITY`

If this event counts as busy time or is still free time that can be scheduled over.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#AVAILABILITY_BUSY`

Indicates that this event takes up time and will conflict with other events.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#AVAILABILITY_FREE`

Indicates that this event is free time and will not conflict with other events.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#AVAILABILITY_TENTATIVE`

Indicates that the owner's availability may change, but should be considered busy time that will conflict.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#CALENDAR_ID`

The `https://developer.android.com/reference/android/provider/BaseColumns#_ID` of the calendar the event belongs to.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#CAN_INVITE_OTHERS`

Whether the user can invite others to the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#CUSTOM_APP_PACKAGE`

The package name of the custom app that can provide a richer experience for the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#CUSTOM_APP_URI`

The URI used by the custom app for the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#DESCRIPTION`

The description of the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#DISPLAY_COLOR`

This will be `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#EVENT_COLOR` if it is not null; otherwise, this will be `https://developer.android.com/reference/android/provider/CalendarContract.CalendarColumns#CALENDAR_COLOR`.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#DTEND`

The time the event ends in UTC millis since epoch.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#DTSTART`

The time the event starts in UTC millis since epoch.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#DURATION`

The duration of the event in RFC2445 format.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#EVENT_COLOR`

A secondary color for the individual event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#EVENT_COLOR_KEY`

A secondary color key for the individual event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#EVENT_END_TIMEZONE`

The timezone for the end time of the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#EVENT_LOCATION`

Where the event takes place.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#EVENT_TIMEZONE`

The timezone for the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#EXDATE`

The recurrence exception dates for the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#EXRULE`

The recurrence exception rule for the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#GUESTS_CAN_INVITE_OTHERS`

Whether guests can invite other guests.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#GUESTS_CAN_MODIFY`

Whether guests can modify the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#GUESTS_CAN_SEE_GUESTS`

Whether guests can see the list of attendees.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#HAS_ALARM`

Whether the event has an alarm or not.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#HAS_ATTENDEE_DATA`

Whether the event has attendee information.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#HAS_EXTENDED_PROPERTIES`

Whether the event has extended properties or not.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#IS_ORGANIZER`

Are we the organizer of this event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#LAST_DATE`

The last date this event repeats on, or NULL if it never ends.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#LAST_SYNCED`

Used to indicate that a row is not a real event but an original copy of a locally modified event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ORGANIZER`

Email of the organizer (owner) of the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ORIGINAL_ALL_DAY`

The allDay status (true or false) of the original recurring event for which this event is an exception.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ORIGINAL_ID`

The `https://developer.android.com/reference/android/provider/BaseColumns#_ID` of the original recurring event for which this event is an exception.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ORIGINAL_INSTANCE_TIME`

The original instance time of the recurring event for which this event is an exception.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#ORIGINAL_SYNC_ID`

The _sync_id of the original recurring event for which this event is an exception.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#RDATE`

The recurrence dates for the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#RRULE`

The recurrence rule for the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SELF_ATTENDEE_STATUS`

This is a copy of the attendee status for the owner of this event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#STATUS`

The event status.
`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#STATUS_CANCELED`

<br />

`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#STATUS_CONFIRMED`

<br />

`int` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#STATUS_TENTATIVE`

<br />

`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA1`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA10`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA2`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA3`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA4`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA5`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA6`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA7`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA8`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#SYNC_DATA9`

This column is available for use by sync adapters.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#TITLE`

The title of the event.
`https://developer.android.com/reference/java/lang/String` `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#UID_2445`

The UID for events added from the RFC 2445 iCalendar format.

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlerts#CONTENT_URI` The Uri for querying calendar alert information |
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarAlerts#CONTENT_URI_BY_INSTANCE` This URI is for grouping the query results by event_id and begin time. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Fields

### CONTENT_URI

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Uri CONTENT_URI
```

The Uri for querying calendar alert information

<br />

### CONTENT_URI_BY_INSTANCE

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Uri CONTENT_URI_BY_INSTANCE
```

This URI is for grouping the query results by event_id and begin time. This will return one result per instance of an event. So events with multiple alarms will appear just once, but multiple instances of a repeating event will show up multiple times.

<br />