简体   繁体   English

事件提醒不适用于android中的日历事件

[英]Event reminder not working for calendar events in android

My calendar application (version 2.3) adds the calendar event for user, but the reminder is not working. 我的日历应用程序(版本2.3)为用户添加了日历事件,但提醒无效。 I have set event.put("hasAlarm", 1); 我设置了event.put("hasAlarm", 1); like this. 像这样。

Any solutions? 有解决方案吗

Can you try the following event.put(Events.HAS_ALARM,1); 你能尝试以下event.put(Events.HAS_ALARM,1);

where import is import android.provider.CalendarContract.Events; 其中import是import android.provider.CalendarContract.Events;

use this import import android.provider.Calendar.Events; 使用此导入import android.provider.Calendar.Events; for 2.3 为2.3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android-添加没有提醒的日历活动 - Android - Adding a calendar event without reminder 如何在Android中以编程方式在日历中创建提醒(不是事件)? - How to create a Reminder (not Event) in Calendar programmatically in Android? Android创建日历条目,提醒时间不起作用 - Android Create Calendar Entry With Reminder Time Not Working 在日历Android中添加提醒 - adding reminder in calendar android 是否可以通过编程方式添加提醒而无需在android日历中创建事件? - Is it possible to add a reminder programatically without creating event in android calendar? Android:如何在设备日历上添加将来的日期事件和提醒? - Android : How to add future date event and reminder on device calendar? Android Event with Reminder 在日历应用程序中显示两个条目 - Android Event with Reminder shows two entries in calendar application 在 android 日历中添加用户无法修改的事件/提醒 - Add Event/Reminder in android calendar that user cannot modify 更改日历事件的提醒会更改事件ID,而不是提醒ID - Changing a reminder on a calendar event changes the event id, not reminder id 如何通过用户应用将事件设置为设备日历并在Android Google日历中获取提醒? - How to set the event to the device calendar through user app and get the reminder in android google calendar?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM