title: using javascript in android webview
body: <p>I'm trying to start an activity from a javascript interface in my webview.
  The example shows a toast. How could i call a class instead of a toast?</p>
  
  <pre><code>public class JavaScriptInterface {
  Context mContext;
  
  /** Instantiate the interface and set the context */
  JavaScriptInterface(Context c) {
      mContext = c;
  }
  
  /** Show a toast from the web page */
  public void showToast(String toast) {
      Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();
  }
  }
  </code></pre>
  
  <p>this for the html page.</p>
  
  <pre><code>&lt;input type="button" value="Say hello" onClick="showAndroidToast('Hello Android!')" /&gt;
  
  &lt;script type="text/javascript"&gt;
  function showAndroidToast(toast) {
      Android.showToast(toast);
  }
  </code></pre>
  
  <p></p>