I want to clear the text in EditText
after it has been saved in database.
Here is my code:
pictureDescription.addTextChangedListener(new TextWatcher()
{
public void afterTextChanged(Editable textValue)
{
String content = textValue.toString();
db.updatePicDes(content,lastSnapId);
}
}
you can use
EditText.setText("");
Just set it to empty string. I think it should do it.
Use
editText.getText().clear()
.You better do that in FocusChangedListener if you donot want it on clicking a button.