i get a NumberFormatException : invalid double "111,000,000" in this line of code :
double SalePotential = Double.valueOf(EtPotential.getText().toString());
in the beginning i've used Numberformat , to format my double value for separating number and inserted it to an EditText but when i try to retrieve the value of EditText it throws me the exception :
NumberFormat f = NumberFormat.getInstance();
EtPotential.setText(String.valueOf(f.format(PTData.SalePotential)));
i've also tried DecimalFormat or Double.parseDouble with no Success. any help would be Appreciated! :
DecimalFormat f = new DecimalFormat("###.###", DecimalFormatSymbols.getInstance());
double SalePotential = Double.parseDouble(EtPotential.getText().toString());