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
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
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
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
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
5 matches
Mail list logo