title: How to get cursor position in a Edittext
body: <p>I am making an Android application. In my application, I have to find the cursor position of a edittext. For example, I put the text <code>"how are you"</code> on edittext. If I click next to character <code>'a'</code> then, I have to find the cursor now in front of 'a'.</p>
  
  <p>How can I find out the cursor position and the character where cursor is placed?</p>