2013-01-03 25 views
0

我在這裏有一個問題。我可能會將聯繫人插入聯繫供應商,但我不知道是否可以創建屬於第三方帳戶的聯繫人。我的意思是:我想將我的聯繫人添加到第三方帳戶而不是Google帳戶。我在Google Play(Facebook聯繫人同步應用程序,...)中發現了一些內容,但它們沒有此功能。我認爲Google聯繫供應商不允許我們這樣做。我們能做到嗎,如果可能的話,請告訴我怎麼做?創建聯繫人屬於第三方帳戶?

感謝您的閱讀!

create third party contact

回答

0

雖然插入接觸到RAW聯繫表中,提供了一種ACCOUNTTYPE和帳戶名。

final ContentProviderOperation.Builder newContact = ContentProviderOperation 
      .newInsert(RawContacts.CONTENT_URI); 
    newContact.withValue(RawContacts.ACCOUNT_TYPE, rawContact.accountType); 
    newContact.withValue(RawContacts.ACCOUNT_NAME, rawContact.accountName); 
    newContact.withValue(RawContacts.AGGREGATION_MODE, RawContacts.AGGREGATION_MODE_DISABLED); 
+0

不工作的人,我看到Skype,Facebook沒有這個功能 –

相關問題