选择联系人&QUOT

选择联系人&QUOT

本文介绍了设置preferenceScreen类型为"选择联系人"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个preferenceActivity有一些的EditText和CheckBox preferences。我想补充的联系的preference这样,当按钮是pressed它将允许的联系人的号码selction

I have a PreferenceActivity with a few EditText and CheckBox Preferences. I would like to add a preference of Contact so that when the button was pressed it would allow the selction of a Contact's number

这是可能的使用preferenceActivity功能?

Is that possible using the PreferenceActivity functionality?

TIA

帕特龙

推荐答案

AFAIK我知道有没有直接的 preference 对象来做到这一点。但是你可以创建自己的,如果你扩展对话preference preference

AFAIK I know there is no direct Preference object to do this. But you can create your own, if you extend DialogPreference or Preference

也许你只火了联系人选择器,并听取了结果。

Probably you have to just fire a contact picker, and listen for the results.

我会太感兴趣,所以我很乐意看到的code共享。

I would be too interested, so I would love to see the code shared.

这篇关于设置preferenceScreen类型为"选择联系人"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 02:27