How to read reminders in Google Calendar

I am trying to read reminders set by the user. What I mean by “reminder”: there are currently two different meanings, the first one is the “warning” associated with each event on the calendar, and you can read them from CalendarContract.Reminders , the second is the unrelated events inserted a user through Google Now with "remember me ...." or using the Google Calendar application with a reminder. I am talking about the second. I am reading from the CalendarContract.Events event table. However, this information does not appear to be stored there or not available. Is there any other source of reminder content?

+7
android google-calendar android-calendar
source share
2 answers

Reminder data is stored in a database accessible by the content provider com.google.android.gms.reminders.provider.RemindersProvider.

Unfortunately, the provider is not exported and therefore not available for third-party applications.

Needless to say, the content provider is not documented and there is no open API.

+3
source share

Try using 'ACTION_EVENT_REMINDER' , this intention is triggered when an alarm notification should be sent for a reminder (android .intent. Action.EVENT_REMINDER).

Here is 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); 
-one
source share

All Articles