1

Android get the value of edittext after the user ends typing

view story
linux-howto

http://stackoverflow.com – I would like to get the value of edittext after the user ends typing. So the default is, the edittext is empty. It has no value in it. After the user inputs a value, it should get it. This is what I've tried: etQuantity.addTextChangedListener(new TextWatcher() { @Override public void afterTextChanged(Editable s) { // TODO Auto-generated method stub Log.d("Quantity", s_quantity); int i_quantity = Integer.parseInt(s_quantity); int i_grossAmount = i_quantity * i_sellingPrice; etGrossAmount.setText(Str (HowTos)