title: Set cursor position in android Edit text
body: <p>How can i set the cursor position in android edit text? I have an edit text and on create i want to set the cursor to some times in the end some times in the middle of the text, what can i do?</p>
  
  <p>my edit text is as follows:</p>
  
  <pre><code>android:id="@+id/editText11"
  android:layout_width="wrap_content"
  android:layout_height="200sp"
  android:layout_above="@+id/horizontalScrollView1"
  android:layout_alignParentLeft="true"
  android:layout_alignParentRight="true"
  android:layout_alignParentTop="true"
  android:gravity="top"
  android:background="#00000000"
  android:inputType="textMultiLine"
  android:singleLine="true"
  </code></pre>