title: Android RequestFocus() Ineffective
body: <p>I want the EditText in my application to have the cursor by default when the application starts.
  I tried using</p>
  
  <pre><code>&lt;EditText
      android:id="@+id/idInput"
      android:layout_width="480dp"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:focusable="true"
      android:focusableInTouchMode="true"
      android:ems="10" &gt;
  
      &lt;requestFocus /&gt;
  &lt;/EditText&gt;
  </code></pre>
  
  <p>and also</p>
  
  <pre><code>userIdInput = (EditText)findViewById(R.id.idInput);
  userIdInput.setFocusable(true);
  userIdInput.setFocusableInTouchMode(true);
  userIdInput.requestFocus();
  </code></pre>
  
  <p>But none of it seems to have any effect. The cursor is nowhere visible when the application starts and I have to manually click the EditText to make the cursor appear on it.</p>
  
  <p>Where could I be possibly go wrong ?</p>
  
  <p>By the way, I am developing for Android 4.0.3 tablets.</p>