Add the android:numeric property to your EditText fields, by default it's off:
android:numeric="signed|decimal" See http://developer.android.com/reference/android/widget/TextView.html#attr_android:numeric As TreKing suggested, don't use Scanner, it's an overkill, but don't forget to catch the exception. -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en