How to read reminders in google calendars
Asked Answered
O

2

10

I'm trying to read the reminders set by the user. What I mean with "reminder": currently there are two different meaning, the first one is the "alert" related to each event in the calendar and you can read them from CalendarContract.Reminders, the second one are unrelated events inserted by the user via Google Now with "remember me to...." or via Google Calendar app with insert reminder action. I'm talking about the second one. I'm reading from the event table CalendarContract.Events. However it seems that this information is not saved there or it's not accessible. Is there a different content provider for reminders?

Oscular answered 21/2, 2016 at 10:8 Comment(4)
That reminder functionality is not available as far as I know.Orme
@Orme Yep, I didn't find any documentation. It seems that there isn't any public APIOscular
@Oscular Any updates on this one? Thanks.Eley
@Eley is there is any updates on this one?Squinty
E
5

The Reminders data seems to be held in a database accessible by the 'com.google.android.gms.reminders.provider.RemindersProvider' content provider.

Unfortunately, the provider is not exported and therefore is not accessible to third party apps.

Needless to say that the content provider is not documented and no public API exists.

Eley answered 4/5, 2016 at 18:11 Comment(1)
Any updates on this? Maybe we should create an issue on google's tracker. Where this tracker for Google calendar?Outflank
S
-1

Try to use 'ACTION_EVENT_REMINDER' broadcast, this intent get fired when an alarm notification needs to be posted for a reminder (android.intent.action.EVENT_REMINDER).

Here's a sample code for EVENT_REMINDER:

<receiver android:name="com.eshayne.android.CalendarTest">
<intent-filter>
<data android:scheme="content"/> 
<action android:name="android.intent.action.EVENT_REMINDER" />
</intent-filter>
</receiver>


IntentFilter filter = new IntentFilter(CalendarContract.ACTION_EVENT_REMINDER);
filter.addDataScheme("content"); 
registerReceiver(myRemindersReceiver, filter);
Scapegrace answered 22/2, 2016 at 1:27 Comment(1)
You didn't understand the questionOscular

© 2022 - 2024 — McMap. All rights reserved.