It uses sync adapters (AbstractThreadedSyncAdapter), authenticators, and the new contacts features, available as of Android 2.0. Check the SampleSyncAdapter code for an idea on how this works:
http://developer.android.com/resources/samples/SampleSyncAdapter/index.html Roman On May 4, 9:29 am, dj <[email protected]> wrote: > Hi, > > I'm looking at the new Twitter app, it makes interesting use of the > contacts system. I'm not quite sure how it works, was looking if > anyone can give a hint. > > I have a wiped nexus one, with no contacts in my contacts book. I used > the option in the Twitter app called: > > Sync Contacts -> Sync all > > this has the effect of pulling all the people I follow on Twitter into > my contacts book, and putting a Twitter link in the contacts screen, > something like: > > John Doe > Nickname > johndoe2000 > Twitter profile > last tweet here, click to launch Twitter app > > I'm wondering what methods they're using in the contacts API to do > this? After the contacts are added, I cannot add a phone # etc to > these entries, which is kind of bad - wouldn't the end user want to be > able to update a contact's profile with a phone # etc, after pulling > in from Twitter? > > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://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

