How to read reminders in google calendars

后端 未结 2 1148
野趣味
野趣味 2021-02-20 13:32

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

2条回答
  •  时光取名叫无心
    2021-02-20 13:58

    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:

    
    
     
    
    
    
    
    
    IntentFilter filter = new IntentFilter(CalendarContract.ACTION_EVENT_REMINDER);
    filter.addDataScheme("content"); 
    registerReceiver(myRemindersReceiver, filter);
    

提交回复
热议问题