android - Display synced contacts in HTC Sense -


i'm working on syncadapter add contacts webservice. working fine on emulator contacts doesn't show on htc desire running htc sense.

i've read sense needs "real" contacts "link" new 1 i'm pretty sure facebook sync application adds new contacts.

so know how can done? thanks.

ok, got working, have declare account in groups. here i've done :

contentproviderclient client = mcontext.getcontentresolver().acquirecontentproviderclient(contactscontract.authority_uri); contentvalues cv = new contentvalues(); cv.put(groups.account_name, account.name); cv.put(groups.account_type, account.type); cv.put(settings.ungrouped_visible, true); client.insert(settings.content_uri.buildupon()     .appendqueryparameter(contactscontract.caller_is_syncadapter, "true")     .build(), cv); 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -