EditText input = (EditText) findViewById (R.id.editText);
EditText input2 = (EditText) findViewById (R.id.editText2);
EditText outputxx = (EditText) findViewById (R.id.editText3);
double result;
DecimalFormat df = new DecimalFormat("#,###,##0.00");
result = Double.parseDouble(input.getText().toString()) / Double.parseDouble(input2.getText().toString());
outputxx.setText(String.valueOf(df.format(result)));