John
John

Reputation: 1909

android preferences

i am using a listprefernce in my app and when a user makes a selection I would like to check it for errors, but when i set an onclicklistener it starts when i select the listpreference, not when i make my selection. is there a way to make it check the selection right after they make it?

Upvotes: 1

Views: 547

Answers (1)

John
John

Reputation: 1909

found the answer. incase anyone else wants to know you need to use setOnPreferenceChangeListener and use the newValue object.

Upvotes: 2

Related Questions