如何复制消息应用程序中选择联系人的功能?

发布于 2024-08-29 20:40:59 字数 221 浏览 5 评论 0原文

Android 的消息应用程序位于projects/platform/packages/apps/Mms.git 中,有一个名为RecipientsEditor 的类。我希望能够创建 MultiAutoCompleteTextView ,以相同的方式过滤联系人,以便在我的应用程序中轻松选择联系人。使用彩信应用程序很麻烦,因为它使用内部 API 并且所有内容都跨类划分。

有没有人做了一个简单的方法来做到这一点?

Android's messaging app, located in projects/platform/packages/apps/Mms.git has a class called RecipientsEditor. I would like to be able to create MultiAutoCompleteTextView that will filter contacts the same way, to make contact selection easy in my app. using the mms app is cumbersome since it uses internal apis and has everything split across classes.

Has anyone made an easy way to do this?

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

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

发布评论

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

评论(1

别忘他 2024-09-05 20:40:59

对于公共应用程序来说这是一个坏主意,但是如果您有正确的类加载器,您可以使用其他应用程序中的代码和资源。我写过它,使用createPackageContext和一些反射。

It's a bad idea for public applications but you can use code and resources from other applications if you have the right class loader. I wrote about it, using createPackageContext and some reflection.

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