title: Soft Keyboard not displaying on touch in WebView DialogFragment
body: <p><strong>Edit:</strong> I have looked at the error <a href="https://code.google.com/p/android/issues/detail?id=7189" rel="nofollow noreferrer">page for this</a>; no answers work. It seems it is an <code>Android</code> system bug that has not yet been solved. </p>
  
  <p>First off I've referred to <a href="https://stackoverflow.com/questions/4200259/tapping-form-field-in-webview-does-not-show-soft-keyboard">this similar question.</a> But the solution to that question does not seem to be the solution to mine. I have a <code>DialogFragment</code> that contains only a <code>WebView</code>. Everything in the <code>WebView</code> seems to be touchable. However, the problem is that when I touch a form field, the cursor appears but the soft keyboard never shows up!</p>
  
  <p>Here's my code in the <code>onCreateDialog()</code> method within the <code>DialogFragment</code> class:</p>
  
  <pre><code>    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
      WebView web = new WebView(getActivity());
      web.loadUrl(InternetDialog.this.url);
      web.setFocusable(true);
      web.setFocusableInTouchMode(true);
      web.requestFocus(View.FOCUS_DOWN);
      web.setOnTouchListener(new View.OnTouchListener() {
          @Override
          public boolean onTouch(View v, MotionEvent event) {
              switch (event.getAction()) {
                  case MotionEvent.ACTION_DOWN:
                  case MotionEvent.ACTION_UP:
                      if (!v.hasFocus()) {
                          v.requestFocus();
                      }
                      break;
              }
              return false;
          }
      });
  
      builder.setView(web);
      return builder.create();
  </code></pre>
  
  <p>How can I get the soft keyboard to show up when I select a form field?</p>