如何从任何应用程序将联系人详细信息保存在手机通讯录中

发布于 2024-11-19 15:54:11 字数 141 浏览 3 评论 0原文

我正在尝试创建一个应用程序,该应用程序将添加联系方式详细信息,例如电话号码、电子邮件地址和手机地址簿中的姓名,但我不知道如何执行此操作。我知道我们可以从地址簿中访问联系人详细信息,但是我们如何将应用程序中的任何新联系人添加到地址簿中?

这怎么能做到呢?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

橘虞初梦 2024-11-26 15:54:11

看看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

怂人 2024-11-26 15:54:11

据我了解,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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文