i have code in android application:
double lat = double.parse (latcoordinate);
when device language english every thing right, when select other languages not working.
in languages char '.' not valid. in others parser double string bad.for example parse "-95.22222" tp -9.522222 .
how can fix issue?
you should set cultureinfo en-us below:
return d.tostring (new cultureinfo ("en-us"));
Comments
Post a Comment