Alex Rivera | Logout

How to clear the text in edittext

Asked 2011-09-15T05:57:02.390
16

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);

  }
}
Edit
Report

1 Answer

0
String content = textValue.toString();
db.updatePicDes(content,lastSnapId);
editText.setText("");
answered 2011-09-15T06:09:41.233

Your Answer