Re: [android-developers] Preference and type

2009-11-08 Thread Bob Cai
Done! Although there's no INT type Preference. Here's the way to make sure that the input for EditTextPreference is a number. EditText etText = (EditText)((EditTextPreference)findPreference(NUM_TEXT)).getEditText(); etText.setKeyListener(DigitsKeyListener.getInstance()); On Sat, Nov 7, 2009 at

Re: [android-developers] Preference and type

2009-11-07 Thread Bob Cai
I am experiencing the same issue. My app. requires an INT number returned from EditTextPreference, any way to make sure that the input for EditTextPreference is an INT before it returns to app.? On Fri, Nov 6, 2009 at 8:07 AM, Pierre pierredur...@gmail.com wrote: With CheckBoxPreference and