I am using a PreferenceActivity for user to define certain settings for the application.
I am also using the OnPreferenceChangeListener interface to get notifications of changed preferences, and within that callback, I can do validation of the user's input, and I can make decisions on updating on rejecting user's input.
When I detect a validation error, I would like to keep the preference editing dialog box active on the screen, so that I can use the .getTextEdit().setError() method to set an error message to inform the user. However, I wasn't able to manage to keep the dialog box active on the screen, since it seems like disappearing right before the OnPreferenceChangeListener callback gets executed.
Any ideas?