android preferences
i am using a listprefernce in my app and when a user makes a select开发者_运维知识库ion 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?
found the answer. incase anyone else wants to know you need to use setOnPreferenceChangeListener and use the newValue object.
精彩评论