title: Cannot clear edittext after setText()
body: <p>this is my code , but the problem is when the I want to clear some chars i cannot </p>
  
  <pre><code>TWL=new TextWatcher(){
  
  
              public void afterTextChanged(Editable s) {
  
  
  
              }
  
  
              public void beforeTextChanged(CharSequence s, int start, int count,
                      int after) {
  
  
              }
  
  
              public void onTextChanged(CharSequence s, int start, int before,
                      int count) {
                   name.removeTextChangedListener(this);//after this line you do the editing code
  
  
                 name.setText(s+"-");
                 name.setSelection(name.getText().length());
  
  
  
                 name.addTextChangedListener(TWL); // you register again for listener callbacks
  
              }};
          name = (EditText)findViewById(R.id.editText1);
           name.addTextChangedListener(TWL);
  </code></pre>