title: EditText, How can control the cursor in TextWatcher?
body: <p>I have a TextWatcher on an EditText, in the method afterTextChanged, I add characters to the EditText then I move the cursor to the end of EditText for continue adding text, but I have problems with that.</p>
  
  <p>Like this:</p>
  
  <pre><code>public void afterTextChanged(Editable s) {
  
      if(edittext.getText().length()==2){
  
          // append dot to edittext
          edittext.append(".");
          // move cursor at end position in EditText
          edittext.setSelection(edittext.getText().length());
        }
  }
  </code></pre>
  
  <p>In  android 4.0v or superior, the cursor stay before the "." , and In 2.2v works fine, but in both I can't delete the characters.</p>
  
  <p>Anyone with the same problem ?</p>
  
  <p>Grettings</p>