title: Detecting selection changes in WebView
body: <p>I was able to get the selected text using the following method:</p>
  
  <pre><code>webview.evaluateJavascript("(function(){return window.getSelection().toString()})()",
      new ValueCallback&lt;String&gt;()
      {
          @Override
          public void onReceiveValue(String value)
          {
              selected = value;
              Log.v(TAG, "SELECTION:" + value);
          }
      }
  );
  </code></pre>
  
  <p>And I detect the first selection using when the motion event detected by the <code>onTouchEvent</code> is <code>ACTION_UP</code>. </p>
  
  <pre><code>webview.setOnTouchListener(new View.OnTouchListener() {
      public boolean onTouch(View v, MotionEvent event) {
          int action = event.getAction();
          if(event.getAction() == MotionEvent.ACTION_UP)
          {
             //webview started selection a word
          }
      }
  });
  </code></pre>
  
  <p>My problem is to be able to detect when the selection changes using the handlers. Unfortunately <code>ACTION_MOVE</code> and <code>ACTION_DOWN</code> are not getting called while changing the selection using the default selection handlers.</p>
  
  <p>Kindly note that when I use the <code>ActionMode CallBack</code> function, the default selection stops working.</p>