title: How to hide keyboard when user clicks on textbox in webview android
body: <p>Can we hide android system keyboard when user focuses or clicks on html input elements inside the webview.</p>
  
  <p>I have tried hiding keyboard on user touches webview:</p>
  
  <pre><code>webView.setOnTouchListener(new View.OnTouchListener()
  {
      @Override
      public boolean onTouch (View v, MotionEvent event){
          Toast.makeText(cx,"Web View Touch",Toast.LENGTH_LONG).show();
          v.onTouchEvent(event);
          InputMethodManager imm = (InputMethodManager) v.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
          if (imm != null) {
              imm.hideSoftInputFromWindow(v.getWindowToken(), 0);
  
          }
              return true;
      }
  })
  </code></pre>
  
  <p>But that doesn't work.</p>
  
  <p>Is there option to hide keyboard entirely for a app?</p>