Build 1.0_r1(from source)

android.provider
Class Calendar.Calendars

java.lang.Object
  extended by android.provider.Calendar.Calendars
All Implemented Interfaces:
BaseColumns, Calendar.CalendarsColumns, SyncConstValue
Enclosing class:
Calendar

public static class Calendar.Calendars
extends Object
implements BaseColumns, SyncConstValue, Calendar.CalendarsColumns

Contains a list of available calendars.


Field Summary
static Uri CONTENT_URI
          The content:// style URL for this table
static String DEFAULT_SORT_ORDER
          The default sort order for this table
static String DISPLAY_NAME
          The display name of the calendar
static String HIDDEN
          Should the calendar be hidden in the calendar selection panel?
static Uri LIVE_CONTENT_URI
           
static String LOCATION
          The location the of the events in the calendar
static String NAME
          The name of the calendar
static String URL
          The URL to the calendar
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Fields inherited from interface android.provider.SyncConstValue
_SYNC_ACCOUNT, _SYNC_DIRTY, _SYNC_ID, _SYNC_LOCAL_ID, _SYNC_MARK, _SYNC_TIME, _SYNC_VERSION, NON_SYNCABLE_ACCOUNT
 
Fields inherited from interface android.provider.Calendar.CalendarsColumns
ACCESS_LEVEL, COLOR, CONTRIBUTOR_ACCESS, EDITOR_ACCESS, FREEBUSY_ACCESS, NO_ACCESS, OVERRIDE_ACCESS, OWNER_ACCESS, READ_ACCESS, RESPOND_ACCESS, ROOT_ACCESS, SELECTED, SYNC_EVENTS, TIMEZONE
 
Constructor Summary
Calendar.Calendars()
           
 
Method Summary
static int delete(ContentResolver cr, String selection, String[] selectionArgs)
          Convenience method perform a delete on the Calendar provider
static int deleteCalendarsForAccount(ContentResolver cr, String account)
          Convenience method to delete all calendars that match the account.
static Cursor query(ContentResolver cr, String[] projection, String where, String orderBy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_URI

public static final Uri CONTENT_URI
The content:// style URL for this table


LIVE_CONTENT_URI

public static final Uri LIVE_CONTENT_URI

DEFAULT_SORT_ORDER

public static final String DEFAULT_SORT_ORDER
The default sort order for this table

See Also:
Constant Field Values

URL

public static final String URL
The URL to the calendar

Type: TEXT (URL)

See Also:
Constant Field Values

NAME

public static final String NAME
The name of the calendar

Type: TEXT

See Also:
Constant Field Values

DISPLAY_NAME

public static final String DISPLAY_NAME
The display name of the calendar

Type: TEXT

See Also:
Constant Field Values

LOCATION

public static final String LOCATION
The location the of the events in the calendar

Type: TEXT

See Also:
Constant Field Values

HIDDEN

public static final String HIDDEN
Should the calendar be hidden in the calendar selection panel?

Type: INTEGER (boolean)

See Also:
Constant Field Values
Constructor Detail

Calendar.Calendars

public Calendar.Calendars()
Method Detail

query

public static final Cursor query(ContentResolver cr,
                                 String[] projection,
                                 String where,
                                 String orderBy)

delete

public static int delete(ContentResolver cr,
                         String selection,
                         String[] selectionArgs)
Convenience method perform a delete on the Calendar provider

Parameters:
cr - the ContentResolver
selection - the rows to delete
Returns:
the count of rows that were deleted

deleteCalendarsForAccount

public static int deleteCalendarsForAccount(ContentResolver cr,
                                            String account)
Convenience method to delete all calendars that match the account.

Parameters:
cr - the ContentResolver
account - the account whose rows should be deleted
Returns:
the count of rows that were deleted

Build 1.0_r1(from source)

Please submit a feedback, bug or feature