Thank you very much for the reply. I'll give that a go. It would be nice if there were a regex option and an error message option in the SDK and some kind of validate for save in the popup (when clicking OK).
Hey I can dream... Thanks again! On Dec 9, 4:43 pm, Dean_Kreger <[email protected]> wrote: > Hey julius, > > You will have to extend the EditTextPreference class and override > some methods in the underlying EditText (use "getEditText()"). Best > bet would be to make your own key listener, and have it check what the > current text in your EditText is. > > Then in your preference XML (or whatever), you'll have to change > your "EditTextPreference" to > "com.your.package.ExtendedEditTextPreference". > > On Dec 8, 10:36 pm, julius <[email protected]> wrote: > > > Hi, > > > If I have a Preference Activity and it has an edittext input, how > > would I go about say limiting the input to integers between 1 and 300? > > > I've looked around and I can't seem to find anything regarding > > Preference Validation. > > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

