title: EditText's selectAll() does not select the text, instead cursor is moved to position 0
body: <p>My situation is: I have a <code>EditText</code>, and under it I have a button, called "select all". It's purpose is to let the user select all the text by pressing it.<br>
  When the button is clicked, I invoke <code>selectAll()</code> on the <code>EditText</code>, but instead of selecting all text, in some cases (generally, when the cursor is already positioned within the text somewhere), the cursor is moved to position <code>0</code> (start of text) and text remains unselected. Second click on the button will then select all. But of course it should happen on first click.<br><br>
  From this issue: <a href="https://stackoverflow.com/questions/11793635/android-edittext-selectall-doesnt-works-if-one-taps-on-the-same-field-in-andr">Android EditText selectAll() doesn&#39;t works if one taps on the same field in android 4.x only</a> it seems that this is a bug in android 4.0 and above. (Found no mention in Google issue tracker).<br>
  Does anyone know about a way to overcome this problem? It seems that the probelm is also in other selection methods and not only <code>selectAll()</code>.<br><br>
  (p.s. This question is sort of duplicate of the issue I mentioned above. But I opened another question, because the author of that issue was satisfied and selected a partial answer (of setting <code>android:selectAllOnFocus="true"</code>), while in my case and scenario it does not help me and does not solve the problem.<br><br>
  Thanks.</p>