开发者

How do I replicate the functionality of selecting contacts in messaging app?

开发者 https://www.devze.com 2022-12-27 02:59 出处:网络
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

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消