> I'm calling as a sync adapter.

Are you writing a sync adapter? If not, you shouldn't be doing that.
The GoogleCalendarSyncAdapter can change the meaning of the sync_data
columns at anytime so you can't rely on it. If you modify the events,
the dirty bit won't be set and the "real" syncadapter own't notice the
change.

And if you are, you shouldn't be syncing the calendar for
account_type=com.google.

> Is it possible that GoogleCalendarSyncAdapter does the update and sets the 
> DIRTY flag back to zero before it reaches my sync adapter?

Yes, that's how it works.

On Thu, Nov 15, 2012 at 9:38 AM, Christopher Masser <[email protected]> wrote:
> hm, the DIRTY flag is always zero for me and I'm calling as a sync adapter.
> Is it possible that GoogleCalendarSyncAdapter does the update and sets the
> DIRTY flag back to zero before it reaches my sync adapter?
>
>
> On Monday, November 12, 2012 2:57:43 PM UTC+1, Christopher Masser wrote:
>>
>> CalendarContract.EventsColumns.SYNC_DATA1 - SYNCDATA10 are said to be
>> columns of the content provider for use with sync adapters. Does anybody
>> know if there is some convention for what is the use of these columns? I've
>> realized that on my device SYNC_DATA5 stores the date last modified and
>> SYNC_DATA1 seems to store the Google event ID. So it seems whenever the
>> Calendar app syncs with Google Calendar, these columns are modified.
>>
>> However, if I choose to use one of these columns for my sync adapter, how
>> can I make sure another application doesn't use the very same columns and
>> they override each other?
>>
>> If SYNC_DATA5 is ALWAYS used by Google Calendar to store the date last
>> modified I would be fine with just using that for my sync logic, I just need
>> to be certain that this is a convention.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to