title: Android: select all text on focus on EditField
body: <p>I'm trying to get Android to select all the text in an EditText field when it gets the focus. I'm using this attribute in the layout (on both fields):</p>
  
  <pre><code>android:selectAllOnFocus="true"
  </code></pre>
  
  <p>I'm not sure if this is relevant, but to get the cursor to the first editable field (there's also a disabled field before it), I'm using the following commands:</p>
  
  <pre><code>quizStartNum.setFocusable(true);
  quizStartNum.requestFocus();
  </code></pre>
  
  <p>But, while the cursor does move to the desired field when the layout is first displayed, the text doesn't get highlighted;  instead the cursor ends up to the left of the text, the default behavior. If I move to the second field by touching it, all the text is selected as desired. Then, if I move back to the first field, again by touching it, the text is also completely selected. I would like to have the behavior right from the start. Is there a way to do this?</p>