Why does android studio want CalendarContract.Calendars instead of Calendar?
<p>I'm trying to read and write to the calendar using my App. So I'm using the code from the <a href="https://developer.android.com/guide/topics/providers/calendar-provider.html" rel="nofollow">android developer guide</a>: </p>

<p>I've copied this:</p>

<pre><code>// Run query
Cursor cur = null;
ContentResolver cr = getContentResolver();
Uri uri = Calendars.CONTENT_URI;   
String selection = "((" + Calendars.ACCOUNT_NAME + " = ?) AND (" 
                    + Calendars.ACCOUNT_TYPE + " = ?) AND ("
                    + Calendars.OWNER_ACCOUNT + " = ?))";
String[] selectionArgs = new String[] {"sampleuser@gmail.com", "com.google",
    "sampleuser@gmail.com"}; 
// Submit the query and get a Cursor object back. 
cur = cr.query(uri, EVENT_PROJECTION, selection, selectionArgs, null);
</code></pre>

<p>However I get the error can not resolve symbol Calendars. The solution android studio offers is to change <code>Calendars</code> to <code>CalendarContract.Calendars</code>.</p>

<p>I'm just curious what the difference is? And possibly why the developer guide contains a flaw?</p>