开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜