Fields Summary |
---|
private static final String | TAG |
public static final String | ACTION_EVENT_REMINDERBroadcast Action: This is the intent that gets fired when an alarm
notification needs to be posted for a reminder. |
public static final String | ACTION_HANDLE_CUSTOM_EVENTActivity Action: Display the event to the user in the custom app as
specified in {@link EventsColumns#CUSTOM_APP_PACKAGE}. The custom app
will be started via {@link Activity#startActivityForResult(Intent, int)}
and it should call {@link Activity#setResult(int)} with
{@link Activity#RESULT_OK} or {@link Activity#RESULT_CANCELED} to
acknowledge whether the action was handled or not.
The custom app should have an intent filter like the following:
<intent-filter>
<action android:name="android.provider.calendar.action.HANDLE_CUSTOM_EVENT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="vnd.android.cursor.item/event" />
</intent-filter>
Input: {@link Intent#getData} has the event URI. The extra
{@link #EXTRA_EVENT_BEGIN_TIME} has the start time of the instance. The
extra {@link #EXTRA_CUSTOM_APP_URI} will have the
{@link EventsColumns#CUSTOM_APP_URI}.
Output: {@link Activity#RESULT_OK} if this was handled; otherwise
{@link Activity#RESULT_CANCELED}. |
public static final String | EXTRA_CUSTOM_APP_URIIntent Extras key: {@link EventsColumns#CUSTOM_APP_URI} for the event in
the {@link #ACTION_HANDLE_CUSTOM_EVENT} intent |
public static final String | EXTRA_EVENT_BEGIN_TIMEIntent Extras key: The start time of an event or an instance of a
recurring event. (milliseconds since epoch) |
public static final String | EXTRA_EVENT_END_TIMEIntent Extras key: The end time of an event or an instance of a recurring
event. (milliseconds since epoch) |
public static final String | EXTRA_EVENT_ALL_DAYIntent Extras key: When creating an event, set this to true to create an
all-day event by default |
public static final String | AUTHORITYThis authority is used for writing to or querying from the calendar
provider. Note: This is set at first run and cannot be changed without
breaking apps that access the provider. |
public static final android.net.Uri | CONTENT_URIThe content:// style URL for the top-level calendar authority |
public static final String | CALLER_IS_SYNCADAPTERAn optional insert, update or delete URI parameter that allows the caller
to specify that it is a sync adapter. The default value is false. If set
to true, the modified row is not marked as "dirty" (needs to be synced)
and when the provider calls
{@link ContentResolver#notifyChange(android.net.Uri, android.database.ContentObserver, boolean)}
, the third parameter "syncToNetwork" is set to false. Furthermore, if
set to true, the caller must also include
{@link Calendars#ACCOUNT_NAME} and {@link Calendars#ACCOUNT_TYPE} as
query parameters. |
public static final String | ACCOUNT_TYPE_LOCALA special account type for calendars not associated with any account.
Normally calendars that do not match an account on the device will be
removed. Setting the account_type on a calendar to this will prevent it
from being wiped if it does not match an existing account. |