联系方式与我自己的应用程序,例如Skype或WhatsApp的同步 [英] contacts sync with my own application like skype or whatsapp
问题描述
荫使得Android应用程序类似于Skype的什么,我想知道的是如何同步Android的接触与我的应用程序,使它们注册我的应用程序,也是在我的Android联系人号码有一个象征。例如,在您的联系人列表中,您看到的Skype图标或WhatsApp的图标与那些谁注册使用Skype或什么接触app.Anyone可以指导我do.thanks什么!
Iam making an android application similar to skype what i want to know is how to synchronize android contacts with my application so that the numbers which are registered with my application and are also in my android contacts got a symbol. For example in your contact list you see a skype icon or whatsapp icon with those contacts who are registered with skype or whats app.Anyone can guide me what to do.thanks!
推荐答案
请参阅android.provider。 ContactsContract类
。因为它是非常广阔的,我建议你先看看ContactsContract.RawContact的SDK描述。在那里,你会发现与描述code代码段的通讯录基本操作。
Please refer to the android.provider.ContactsContract class
. Since it is very broad, I recommend you to first take a look at the SDK description of ContactsContract.RawContact. There you will find description with code snippets for basic operation on Contacts.
同时,看看Android SDK中code的例子:
android-sdk-windows\samples\android-8\SampleSyncAdapter\src\com\example\android\samplesync\platform\ContactOperations.java
android-sdk-windows\samples\android-8\SampleSyncAdapter\src\com\example\android\samplesync\platform\ContactOperations.java
这篇关于联系方式与我自己的应用程序,例如Skype或WhatsApp的同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!