How can I react when an EditText is being focused?
<p>I have an EditText that the user can write in, when the app starts there is already a string in the EditText. When the user clicks the EditText it becomes focused and the curser is where the user clicked the EditText text box.</p>

<p>I know that the code for setting the curser to the start is : </p>

<pre><code>editText.setSelection(0);
</code></pre>

<p>But I don't know where to put this code, I tried to it in beforeTextChanged but it didn't do the job.</p>
