获取联系人表中的帐户类型访问手机联系人 [英] Getting account type of contacts table for accessing phone contact

查看:284
本文介绍了获取联系人表中的帐户类型访问手机联系人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,在我所将联系人添加到手机通讯录。我有华为的Andr​​oid手机,我拿到手机联系人为com.android.huawei.phone和帐户名称为PHONE的账户类型。利用这些数据,我成功地插入了接触,同样也出现在电话联系。但是,这将使我的应用程序的设备具体。有没有什么办法,使应用程序能够在每个设备上?是否有作为账户类型和联系表名的任何标准应申报?

I have a requirement, in which I have to add contacts into phone contact. I have Huawei android phone for which I got account type of phone contact as "com.android.huawei.phone" and account name as "PHONE". Using this data, I successfully inserted the contact and same is also appearing in phone contact. But, this will make my application device specific. Is there any way so that application works on every device? Is there any standard as which account type and name of contact table should be declared?

推荐答案

我的问题已经解决。如果我们分配的无效以账户名和账号类型,那么我们可以轻松地在手机通讯录添加联系人。

My problem has been solved. If we assign null to account name and account type, then we can easily add contacts in phone contacts.

这篇关于获取联系人表中的帐户类型访问手机联系人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆