InstantiationException when using subclass of EditTextPreference
问题 Assume, I have a subclass of EditTextPreference called PasswordProtectedEditTextPreference. This subclass basically shows a password dialog before one can edit the preference by the EditTextPreference 's own dialog. Now I define the preference in the corresponding preferences.xml like this: <edu.myproject.pwprefs.PasswordProtectedEditTextPreference android:key="pref_password" android:title="@string/pref_password_title" android:summary="@string/pref_password_summary" android:dialogTitle="