How to read reminders in google calendars

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 04:27:43

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.

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);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!