| Issue 4: | KML export for german version faulty | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. export a kml file in german android version 2. 3. What is the expected output? What do you see instead? coordinates should be in format xx.xxxxx instead they are xx,xxxxx What version of the product are you using? On what operating system? android 1.5, german version Please provide any additional information below.
Jul 11, 2012
#1
imoJ...@gmail.com
Jul 11, 2012
I fixed myself:
private final DecimalFormatSymbols decimalSymbol = new DecimalFormatSymbols(Locale.getDefault()); //added 2012.07.11
private final DecimalFormat sevenSigDigits = new DecimalFormat("0.#######");
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//added 2012.07.11
if (sevenSigDigits.getDecimalFormatSymbols().getDecimalSeparator() == ',')
{
decimalSymbol.setDecimalSeparator('.');
sevenSigDigits.setDecimalFormatSymbols(decimalSymbol);
}
//end 2012.07.11
|