I did this and am getting the following now. Caused by: java.lang.NoSuchMethodException: EditTextPreferenceEncrypt(Context,AttributeSet) at java.lang.Class.getMatchingConstructor(Class.java:669) at java.lang.Class.getConstructor(Class.java:484) at android.preference.GenericInflater.createItem(GenericInflater.java: 377)
along with error inflating the class. i have this constructor defined - along with another 2 EditTextPreferenceEncrypt(Context context, AttributeSet attrs) { super( context, attrs ); } the XML file has the full package name to the above file - it's finding it. On May 17, 8:26 am, dashman <erjdri...@gmail.com> wrote: > thank you. > > On May 17, 7:08 am, Mark Murphy <mmur...@commonsware.com> wrote: > > > > > > > > > Use your fully-qualified class name (e.g., > > com.dashman.MySuperEditTextPreference) as the element name instead of > > EditTextPreference. > > > On Tue, May 17, 2011 at 7:01 AM, dashman <erjdri...@gmail.com> wrote: > > > ok i've decided to go that route. > > > > i can sub-class and test the different methods. > > > > the preference activity is based on an xml file. > > > > <EditTextPreference > > > android:key="emp_id" > > > android:title="@string/pref_empid" > > > android:singleLine="true" /> > > > > how do i tell it to use my EditTextPreference sub-class. > > > > On May 16, 8:24 pm, Nicholas Johnson <metthejohn...@gmail.com> wrote: > > >> I'm not a 100% on this, but I would try and extend the EditTextPreference > > >> and add the encryption code there. You would have to override the > > >> Preference > > >> methods such as onSetInitialValue, onBindView, persistString, etc. > > > >> I've never done this, but that'd be my best guess. > > > >> Nick > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > _Android Programming Tutorials_ Version 3.4 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en