title: How to make EditText not focused when creating Activity
body: <p>I've read the other questions discussing this, and all of them work for my layouts, <strong>except</strong> for the very first one created.</p>
  
  <p>At the moment, this is at the top of my <code>onCreate</code> method:</p>
  
  <pre><code>getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
  </code></pre>
  
  <p>^ That makes it so at least the keyboard doesn't pop up on startup, but the <code>EditText</code> is still focused on.</p>
  
  <p>This is the <code>XML</code> for my <code>EditText</code>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;EditText
      android:id="@+id/password"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_below="@+id/changePass"
      android:layout_centerHorizontal="true"
      android:layout_marginTop="167dp"
      android:ems="10"
      android:imeOptions="flagNoExtractUi"
      android:inputType="textPassword"
      android:maxLength="30" &gt;
  &lt;/EditText&gt;
  </code></pre>
  
  <p>This is what it looks like when I bring up my activity:</p>
  
  <p><img src="https://i.stack.imgur.com/zUjvc.png" alt="enter image description here"></p>
  
  <p>The problem is that with some phones, when an <code>EditText</code> is focused like this, they can't write in it. I want it to <strong>not</strong> focus.</p>
  
  <p>What I've done works for the next layouts brought up in that it the <code>EditTexts</code> are not focused on and would look more like this:</p>
  
  <p><img src="https://i.stack.imgur.com/i9FZQ.png" alt="enter image description here"></p>
  
  <p>Notice that it's the same layout, though. This is the screen after the user has been brought back to this screen, which would indicate nothing wrong with the <code>XML</code> because this is the same <code>XML</code>, but the problem is that the <code>EditText</code> is only focused on when the activity is created.</p>
  
  <p>I've done research and all of the other questions don't help me with this (they did however help the keyboard not show up, thankfully). How can I make it so the <code>EditText</code> on startup will look like the second screenshot, rather than the first?</p>