0

I already complete contacts synchronization. In contact synchronization I use VERSION flag for detecting existing contacts edited by user.

But in calendar synchronization I cannot find VERSION flag.

Then How I detect existing calendars are edited or not?

VERSION flag not availble in calendar, so what flag used for listen changes in android calendar?

thanks for your valuable answer..

stacktry
  • 324
  • 3
  • 24

2 Answers2

1

You can have a look at https://stackoverflow.com/a/15237331/1009459. It uses a BroadcastReciever to detect changes made on the calendar provider.

Community
  • 1
  • 1
matcauthon
  • 2,261
  • 1
  • 24
  • 41
1

finally I found solution,

I use DIRTY flag if any changes happen it automatically set to 1.

If DIRTY=1 then I update edited contents to my own server.

and also reset this DIRTY flag to zero.

stacktry
  • 324
  • 3
  • 24