[android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread Conrad
So are you saying that it is possible to enter a non-number into such a field, and I do need to test for rigorousness? On Sep 1, 7:59 am, TreKing treking...@gmail.com wrote: On Wed, Aug 31, 2011 at 4:20 PM, Conrad cgtyo...@gmail.com wrote: Is this necessarily true, or do I really need to do a

Re: [android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:05 AM, Conrad cgtyo...@gmail.com wrote: So are you saying that it is possible to enter a non-number into such a field, and I do need to test for rigorousness? I'm saying set the attribute (inputType=number) then run your app and test it. If you can enter a non-number,

[android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread Conrad
Sorry for not being explicit here - I already did that, and I could not enter a non-number. But I'm sure I didn't test exhaustively. It would be nice if this were stated explicitly one way or the other in the docs. On Sep 1, 9:11 am, TreKing treking...@gmail.com wrote: On Thu, Sep 1, 2011 at

Re: [android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread TreKing
On Thu, Sep 1, 2011 at 8:23 AM, Conrad cgtyo...@gmail.com wrote: Sorry for not being explicit here - I already did that, and I could not enter a non-number. But I'm sure I didn't test exhaustively. It would be nice if this were stated explicitly one way or the other in the docs. Ah, well

Re: [android-developers] Re: Verify EditText input when inputType = number?

2011-09-01 Thread Kostya Vasilyev
If you need a number without the +/- sign or the decimal sign, set inputType to number (but not numberSigned or numberDecimal). Behind the scenes, EditText uses these interfaces to filter input: http://developer.android.com/reference/android/text/method/KeyListener.html