[android-developers] Re: Contacts SyncAdapter issues

2009-12-23 Thread Le Nhu Viet
Hi guys, Can you guys show me some examples of code to implement a SyncAdapter to sync contacts with the backend since the documents for sync adapter is extremely brief even the API and I have no idea where to start. One more thing, in the raw_contact table, there are 4 fields: sync1, sync2,

[android-developers] Re: Contacts SyncAdapter issues

2009-12-15 Thread sazilla
Any feedback would be appreciated... thank you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: Contacts SyncAdapter issues

2009-12-15 Thread Dmitri Plotnikov
1) SyncResult is your friend. A SyncResult object is passed to the sync adapter's onPerformSync method. Fill it up before returning. 2) addStatusChangeListener is used mostly internally: for example, settings UI uses it to update those icons representing sync status. 3) SyncContext is a

[android-developers] Re: Contacts SyncAdapter issues

2009-12-15 Thread sazilla
Thank you Dmitri, 1) SyncResult is your friend. A SyncResult object is passed to the sync adapter's onPerformSync method.  Fill it up before returning. Ok, but if a sync request is not propagated to the sync adapter for some reason, how can I observe this fail? Actually I'm blocked with the