I have an app that prints a calculated money value and I want to display that value with the default currency format.
For example in Europe you would write:
1.
I found the solution. THe class NumberFormat has a multitude of predefined formatters. There is also one for formatting currency Values.
If you use the static method getCurrencyInstance the class will return a formatter for the device default currency. I use the following code to set my result:
NumberFormat format = NumberFormat.getCurrencyInstance();
((TextView) findViewById(R.id.text_result)).setText(format.format(result));