Well that was a puzzler for sure. I was not aware of this caps-lock "feature" either. Glad you found the answer and thanks for letting the rest of us know what caused the problem.
On May 12, 11:34 pm, T1000 <t1...@zando.dyndns.org> wrote: > Hi, > > Thanks for everyone's help. I haven't had a chance to try the numeric > property yet, but I did find out what was causing the problem! For > some reason, the Android emulator is configured for a foreign > language? All of the letters on the soft keyboard are standard > English letters, except the key in the lower left corner (capslock?). > When capslock is down, the decimal point (period) is no longer a > decimal point. It looks almost the same as a decimal point. Whether I > type it on the soft keyboard on the virtual Android screen, the > keyboard in the right of the emulator, or on my actual computer > keyboard, it always comes out as a funky decimal point with capslock > down! This funky decimal point was crashing parseDouble, and ignored > by the Scanner. I've been using computers for 20 years, and I've > never used a computer that changed the decimal point with caps lock > enabled. Shift has to be held down, and then you get a ">"! Also, the > capslock state remains the same whenever I reboot the emulator! I've > also never seen that happen! > > http://webpages.charter.net/deham5/Android/Android-idiot-button.gif > > How to I run the emulator with a standard English keyboard? Help! > > Thanks. > > At 12:37 PM 5/12/2010, you wrote: > > > > >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#a... > >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 > > -- > 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 > athttp://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-beginners?hl=en -- 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