且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

删除事件从日历不会被删除

更新时间:2023-12-03 14:16:10

如果它不是一个URI问题,

If its not a URI problem,

您可以尝试在选择字符串包含

Can you try to include in the selection string

AND (deleted != 1)

所以选择字符串变,

so the selection string becomes,

String selection = "((" + "calendar_id" + " = 1) AND ("
    + "title" + " LIKE '"+name+"') AND ("
    + "dtstart" + " = "+String.valueOf(c.getTimeInMillis())+") AND ( deleted != 1 ) )";

偶尔,CalendarDB取某时的事件被去除。但是,删除列将被标记为1,表示他们将尽快删除。究其原因,延迟也许日历正在等待同步

Occasionally, the CalendarDB takes sometime for the events to be removed. But the 'deleted' COLUMN will be marked as '1' indicating that they will be deleted soon. The reason for the delay maybe the calendar is waiting to be synced

P.S:尝试使用这个工具 - http://www.cellobject.net/Tools/CellObjectSQLiteXMLBrowser.aspx以可视化的日历数据库。请在数据库检查的删除和脏列

p.s: Try using this tool -- http://www.cellobject.net/Tools/CellObjectSQLiteXMLBrowser.aspx to visualize the Calendar DB. Please check for the 'deleted' and 'dirty' columns in the db