Settings a listener to Shared Preference's dialog 'OK' button
<p>I have class Settings that extends PreferenceActivity,
in which user enter his Google account and the password. When the user presses 'add account' a dialog jumps with OK and CANCEL buttons.
Same occurs when pressing add password, I want to define listener within PreferenceActivity
to the OK button in the password dialog, that when the OK button is pressed the listener automatically checks if the user has entered the password correctly.</p>
