database - Does com.android.providers.calendar remove deleted events or just flag them as deleted? -


in android kitkat, com.android.providers.calendar remove deleted calendar events calendar storage databases, or flag them deleted?

if flag them in database, write database reflect deletion?

i interested in how pertains local (non-synced) calendars, technical responses regarding both local , synced calendars welcome.

if question belongs on android se instead of here, please migrate it. decided post here because (1) more technical audience here might able answer question, , (2) android se recognize programming-related question , migrate stackoverflow.

event has deleted column , dirty column.

as experienced, calendarprovider doesn't special thing these columns , work you. if delete event delete query removed database.

calendar apps such google calendar work in way: if kind of update or delete has occurred on event, dirty column set true. if event deleted user, deleted column set true.

so when syncadapter starts syncing, finds non-synced events whit dirty column , if deleted column true, delete event database after syncing.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -