title: Cursor postion comes to start of the edittext
body: <p>I have a small problem. In my activity I have an edittext and a button. </p>
  
  <p>Clicking on the button I am changing the inputtype of the edittext. </p>
  
  <p>Now when I click button the input type changes but the cursor goes to the begining of the text in the edittext. </p>
  
  <p>How can I retain the same position of the cursor or can I bring the cursor to the end of the text?</p>
  
  <p>I tried <code>setSelection(edittextobj.getText().length())</code> but doesnot work how can I achive this....?</p>