title: Get caps lock state in Android
body: <p>How can I get the caps lock state in Android using a hardware keyboard?
  In pure Java it can be detected with</p>
  
  <pre><code>boolean isOn = Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK);
  </code></pre>
  
  <p>But this does not work with Android...</p>