在 Android 上选择多个联系人

发布于 2025-01-02 06:05:27 字数 302 浏览 4 评论 0原文

我已经看到这个代码段用于打开选择一个联系人的本机活动

Intent contactPickerIntent = new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI);  
startActivityForResult(contactPickerIntent, 1); 

什么 我感兴趣的是用于消息的活动 在 Android 上,当您编写消息并按“添加收件人”时 你得到一个选择多个联系人的活动。

有希望在我的应用程序中使用该活动吗?

I have seen this code segment for opening a native activity that chooses one contact

Intent contactPickerIntent = new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI);  
startActivityForResult(contactPickerIntent, 1); 

What
I'm interrested in is the activity used for messages
On android, when you write a message and press "add recipient"
u get an activity that chooses multiple contacts.

is there any hope to use that activity in my application?

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

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

发布评论

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

评论(1

薔薇婲 2025-01-09 06:05:27

Base Android 不提供多重选择活动,因此所有 OEM 都提供自己的多重选择活动实现,因此我认为您无法找到所有手机通用的通用实现。

The multiple pick activity is not provided by Base Android so all OEMs provide their own implementation of the multiple pick activity, so i don't think you can find a general implementation common to all handsets.

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