将联系人添加到 Android 模拟器

发布于 2024-08-24 09:18:14 字数 123 浏览 3 评论 0原文

我认为我的问题非常简单:

我希望能够通过简单地单击按钮将联系人添加到联系人列表(并能够在模拟器上测试它)。该联系人的数据将存储在应用程序的源代码中。 有没有一种简单的方法可以做到这一点?

谢谢你的回答

My issue is quite simple I think :

I would like to be able to add a contact to the contact list by a simple click on a button (and be able to test it on the emulator). The data of this contact would be stored in the source code of the application.
is there an easy way of doing that?

thank you for your answers

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

禾厶谷欠 2024-08-31 09:18:14

插入联系人的唯一简单方法是使用 INSERT 操作,您可以在其中提供一些数据并启动一个活动,以便用户提供其余数据并确认将其添加到联系人列表中。 这是一个演示这一点的示例项目

The only easy way to insert a contact is to use an INSERT action, where you supply some of the data and start up an activity for the user to provide the rest and confirm adding it to the contacts list. Here is a sample project demonstrating this.

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