Syncing with SQLite database and Android Calendar -
i have rather complex question regarding syncing data between application's sqlite database, user's calendars, , webserver.
this behavior need:
onresume(): any modified events on calendar on account result in update in application's sqlite database. (only account's user specifies, of course).
what i'm doing write updating every entry in sqlite database each calendar event, whether it's been updated or not in onresume(). is, of course, not ideal.
i'm able pull events application's sqlite database, , sync between database , webserver. main issue syncing between sqlite database , calendar. my research, i've read can write dirty flag on calendar if implement own syncadapter. require me implement contentprovider, avoid. questions are:
- is there reliable method seeing modified
calendarevents without implementing syncadapter? - if not, garaunteed i'll able maintain own
dirtyflag application? know google usesdirtyflag synccalendars google calendar. if google calendar continuously set , reset flag, not me maintain application. - is there recommended design approach type of problem i'm otherwise oblivious to? such method keep "last_modified" type flag each
calendar event?
cheers.
edit: should add i'm targetting android 4.0+ application now, support versions in future.
Comments
Post a Comment