When your SyncAdapter is initialized by the system you should get a flag in the Bundle you receive from the SyncManager.
http://developer.android.com/reference/android/content/ContentResolver.html#SYNC_EXTRAS_INITIALIZE So if this flag is present, copy the contacts to your account. On 17 Jan, 04:30, Shawn_Chiu <qiuping...@gmail.com> wrote: > Hi, all > I'm developing an android contacts sync application. It would > create a new account after successfully login. But there are multiple > accounts in an android phone, no contacts in this new account. If a > user wants to sync with server, he/she should copy contacts into the > funambol account in Contacts application, which make it very > inconvenient for users. > So I want to load contacts immediately after a funambol account is > created, or otherwise just sync with the originally phone account. > Could anybody tell me how to achieve this? > Thanks. > BR > Shawn Chiu -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en