When I query the content resolver for Events.CONTENT_URI, it correctly shows me
future events. But when I query for Reminders.CONTENT_URI, it only shows me
reminders that have occurred already. I want to find if a future event has a
reminder and allow the user to remove it if needed. How do I do this? Where do
I find that info?
THIS ONLY SHOWS RECENT REMINDERS THAT ALREADY OCCURRED:
<code>
//Get all reminders
Cursor cursor = getContentResolver().query(Reminders.CONTENT_URI, null, null,
null, null );
while ( cursor.moveToNext())
{
Log.d(TAG,
"Id: " +
cursor.getInt(cursor.getColumnIndex(Reminders._ID)) +
", Minutes: " +
cursor.getInt(cursor.getColumnIndex(Reminders.MINUTES)) +
", Method: " +
cursor.getInt(cursor.getColumnIndex(Reminders.METHOD))
);
}
</code>
THIS ACTUALLY SHOWS ALL EVENTS INCLUDING FUTURE ONES:
<code>
//Get all events
Cursor cursor = getContentResolver().query(Events.CONTENT_URI, null, null,
null, null );
while ( cursor.moveToNext())
{
Log.d(TAG, cursor.getString(cursor.getColumnIndex(Events.TITLE)));
}
</code>
How do I find (and also alter) the reminders for future events?
--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.