title: Is there a way to tell if the soft-keyboard is shown?
body: <p>is there a way to tell if the softkeyboard is shown in an activity or not?</p>
  
  <p>I tried </p>
  
  <pre><code>InputMethodManager manager = (InputMethodManager) 
  getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);
  manager.isActive(v)
  </code></pre>
  
  <p>but <strong>isActive</strong> returns false only before the first time the keyboard is shown, but if the kb appears and then dismissed, <strong>isActive</strong> returns true also.</p>
  
  <p>so is there any other method to check for this issue.</p>
  
  <p>thanks</p>