title: Hide Soft Keyboard from anywhere
body: <p>Hiding the soft keyboard is pain.
  I use some methods based on having an EditText which gets focus, but in my current app the keyboard keeps popping up at some point where a new fragment is loaded.</p>
  
  <p>I have a method in my helper class, but it does not work for me:</p>
  
  <pre><code> //Hide keyboard
      public static void hideSoftKeyboard(Activity activity) {
          activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
      }
  </code></pre>
  
  <p>What I would love is a helper method, I could call from anywhere to hide the soft keyboard. Is this possible, or do I always need the find the EditText which is focused?</p>