|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wimm.framework.provider.Calendar.Calendars
public static final class Calendar.Calendars
This class provides access to the Calendar table.
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. |
Fields inherited from interface android.provider.BaseColumns |
---|
_COUNT, _ID |
Fields inherited from interface com.wimm.framework.provider.Calendar.CalendarColumns |
---|
COLOR, ID, NAME |
Constructor Summary | |
---|---|
Calendar.Calendars()
|
Method Summary | |
---|---|
static HashMap<String,Integer> |
getCalendarColorMap(ContentResolver cr)
Provides a hash of calendar IDs and colors. |
static Cursor |
query(ContentResolver cr,
String[] projection)
Use this method to query for a Cursor that points to all Calendars in the
Calendar App database. |
static Cursor |
query(ContentResolver cr,
String[] projection,
String where,
String[] whereArgs,
String orderBy)
Use this method to query, with arguments for a Cursor that points to
specific Calendars in the Calendar App database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Uri CONTENT_URI
public static final String DEFAULT_SORT_ORDER
Constructor Detail |
---|
public Calendar.Calendars()
Method Detail |
---|
public static final Cursor query(ContentResolver cr, String[] projection)
Cursor
that points to all Calendars in the
Calendar App database.
For example to query only for ID and Name Calendar.CalendarColumns
of all the Calendars
in the Calendar database:
cr
- The ContentResolver
.projection
- The list of columns to put into the Cursor
. If null all columns are included.
Cursor
.public static final Cursor query(ContentResolver cr, String[] projection, String where, String[] whereArgs, String orderBy)
Cursor
that points to
specific Calendars in the Calendar App database.
For example we can filter our query for all Calendar.CalendarColumns
of only the calendars from gmail and google calendar:
cr
- The ContentResolver
.projection
- The list of columns to put into the Cursor
. If null all columns are included.where
- The filter to apply.whereArgs
- The filter arguments.orderBy
- How to sort the cursor rows. If null the provider defines the sort order.
Cursor
.public static final HashMap<String,Integer> getCalendarColorMap(ContentResolver cr)
cr
- The ContentResolver
.
|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |