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.EventDays#inhconstants) \| [Fields](https://developer.android.com/reference/android/provider/CalendarContract.EventDays#lfields) \| [Methods](https://developer.android.com/reference/android/provider/CalendarContract.EventDays#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/provider/CalendarContract.EventDays#inhmethods)

# CalendarContract.EventDays

*** ** * ** ***


`
public
static
final

class
CalendarContract.EventDays
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/provider/CalendarContract.EventDaysColumns


`

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

<br />

*** ** * ** ***

Fields and helpers for querying for a list of days that contain events.

## Summary

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/provider/CalendarContract.EventDaysColumns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.EventDaysColumns#ENDDAY` The Julian ending day number. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.EventDaysColumns#STARTDAY` The Julian starting day number. | |

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/net/Uri` | `https://developer.android.com/reference/android/provider/CalendarContract.EventDays#CONTENT_URI` |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/database/Cursor` | ` https://developer.android.com/reference/android/provider/CalendarContract.EventDays#query(android.content.ContentResolver,%20int,%20int,%20java.lang.String[])(https://developer.android.com/reference/android/content/ContentResolver cr, int startDay, int numDays, https://developer.android.com/reference/java/lang/String projection) ` Retrieves the days with events for the Julian days starting at "startDay" for "numDays". |

| ### 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
```

<br />

<br />

## Public methods

### query

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

```
public static Cursor query (ContentResolver cr, 
                int startDay, 
                int numDays, 
                String[] projection)
```

Retrieves the days with events for the Julian days starting at
"startDay" for "numDays". It returns a cursor containing startday and
endday representing the max range of days for all events beginning on
each startday.This is a blocking function and should not be done on
the UI thread.

<br />

| Parameters ||
|---|---|
| `cr` | `ContentResolver`: the ContentResolver <br /> |
| `startDay` | `int`: the first Julian day in the range <br /> |
| `numDays` | `int`: the number of days to load (must be at least 1) <br /> |
| `projection` | `String`: the columns to return in the cursor <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/database/Cursor` | a database cursor containing a list of start and end days for events <br /> |