[android-developers] Re: NumberFormat and comma as decimal separator

2009-10-01 Thread Gerald
Thanks for the comments, I check with my user in Germany and he confirmed that he cannot type the comma into a decimal field in Android. The issue is arising for me because when I copy the text into the edit field I convert it into a localized String which has the comma in it. Once this gets into

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Streets Of Boston
I think that using the Number.valueOf and Number.toString methods should work fine. The system should deal with the currently installed and active locale. Unless you're creating an app that needs to deal with multiple locales at the same time or do some fancy formatting, i wouldn't bother much

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Max_well
It's a Android bug. See http://code.google.com/p/android/issues/detail?id=2626 On Sep 30, 6:30 pm, Streets Of Boston flyingdutc...@gmail.com wrote: I think that using the Number.valueOf and Number.toString methods should work fine. The system should deal with the currently installed and

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Gerald
There is no valueOf method in the Number class. If I use the Double.valueOf method it fails to work according to my users. The Android docs on Double.valueOf are pretty thin, however the JDK docs are pretty clear that this accepts a string with a number formatted according to the Java Language

[android-developers] Re: NumberFormat and comma as decimal separator

2009-09-30 Thread Streets Of Boston
I meant 'valueOf' method of the various Number subclasses... :-) You're right. I just took a look at the code that is executed by Double.valueOf(...). It is hard-coded for using periods as decimal seperators. On Sep 30, 12:55 pm, Gerald gerald.b.n...@gmail.com wrote: There is no valueOf method