title: How do I remove the keyboard after I finish an activity?
body: <p>I have an activity that users type inside and then click the ok button. When it is finished, the activity closes and goes back to the old activity but the soft keyboard is still on the screen! I've tried <code>android:windowSoftInputMode="stateHidden"</code> and</p>
  
  <pre><code>getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
  </code></pre>
  
  <p>But it does nothing.</p>