My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 4: KML export for german version faulty
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Project Member Reported by fodia...@gmail.com, Apr 1, 2010
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
This problem is in samsung galaxy s2 too. Im in Latvia and phone interface is set to Latvian. android version 2.3.3, krenel 2.6.35.7
Jul 11, 2012
#2 imoJ...@gmail.com
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

Powered by Google Project Hosting