I\'m making an Android Java program which is taking double values from the user. If I run the program on the computer, it works great because of the locale of my computer, E
using DecimalFormatSymbols.getInstance() will produce the default locale's correct symbols, so you will get it right for any platform you run on.
DecimalFormatSymbols.getInstance()
DecimalFormat df = new DecimalFormat("#.#", DecimalFormatSymbols.getInstance());