如何从任何应用程序将联系人详细信息保存在手机通讯录中
我正在尝试创建一个应用程序,该应用程序将添加联系方式详细信息,例如电话号码、电子邮件地址和手机地址簿中的姓名,但我不知道如何执行此操作。我知道我们可以从地址簿中访问联系人详细信息,但是我们如何将应用程序中的任何新联系人添加到地址簿中?
这怎么能做到呢?
I am trying to create an application which will add contact details like phone number, email address and name in the phone's address book, but I have not idea how to do this. I know that we can access the contact details from the address book, but how can we add any new contacts from our application to the address book?
How can this be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看看http://developer.android.com/resources/articles/contacts.html
示例:插入电话号码下的
更新/编辑:
上述网址不再有效。我想这个页面现在是最相关的:
http://developer.android.com/guide/topics/providers/contacts -provider.html
Look at http://developer.android.com/resources/articles/contacts.html
under Example: Inserting a Phone Number
Update/Edit:
Above mentioned url isn't valid anymore. I guess this page is the most relevant now:
http://developer.android.com/guide/topics/providers/contacts-provider.html
据我了解,Android 联系人是只读的。
编辑:实际上看起来您可以修改和创建新的联系人。
http://developer.android.com/guide/topics/providers/contacts -provider.html
As I understood it, android contacts are read only.
Edit: Actually it looks like you can modify and create new contacts.
http://developer.android.com/guide/topics/providers/contacts-provider.html