Set the preference type in the "Select Contact" view.

I have a PreferenceActivity with several EditText and CheckBox settings. I would like to add the Contact preference so that when I click the button, it allows the removal of the contact number

Is it possible to use the PreferenceActivity function?

TIA

Pat long

+3
source share
2 answers

AFAIK I know that there is no direct object for this Preference. But you can create your own if you expand DialogPreferenceorPreference

Perhaps you just need to start the contact manager and listen to the results.

I would be too interested, so I would really like to see that common code.

+4

, : http://yenliangl.blogspot.com/2010/01/provide-phonepreference-from.html. , RingtonePreference RingtonePreference , RingtonePreference.

API- (http://developer.android.com/resources/articles/contacts.html) . , - .

+2

Source: https://habr.com/ru/post/1753176/


All Articles