title: Android - PhoneGap 2.0.0 - ChildBrowser - Object #<an Object> has no method 'exec'
body: <p>I am developing an android app using phonegap/cordova 2.0.0.</p>
  
  <p>As of right now, I have a website hosted on my server and my android app is just being used as a wrapper webView.</p>
  
  <p>Here's the code in my java file.</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {        
      super.onCreate(savedInstanceState);
      webview = new WebView(this);
  
      webview.getSettings().setJavaScriptEnabled(true);
  
      webview.getSettings().setPluginsEnabled(true);
      webview.addJavascriptInterface(new JavaScriptInterface(), "jsinterface");
  
      setContentView(webview);
  
      // This is where I load the URL of my website
      webview.loadUrl("http://192.168.0.109:3000/");  
  }
  </code></pre>
  
  <p>When I deploy the app to an android phone, it works perfectly fine, I am able to see my website in the phone.</p>
  
  <p>The problem I am facing now is to use phonegap plugin especially ChildBrowser (other plugins give me the same result). I have this exception that is being thrown on my javascript console:</p>
  
  <pre><code>window.plugins.childBrowser.showWebPage("http://www.example.com")
  TypeError: Object #&lt;an Object&gt; has no method 'exec'
  </code></pre>
  
  <p>I followed the instructions on how to use the plugin <a href="https://github.com/phonegap/phonegap-plugins/tree/master/Android/ChildBrowser" rel="nofollow">ChildBrowser Plugin</a></p>
  
  <p>I have included the javascript files on my website hosted on my server</p>
  
  <pre><code>&lt;script src="/assets/cordova-2.0.0.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/childbrowser.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have spent days trying to figure that out and googled everything I could try. But no luck for me since none of the solutions has worked for me. 
  I tried the deviceready option but it didn't work:</p>
  
  <blockquote>
    <p>document.addEventListener("deviceready", yourCallbackFunction, false);</p>
  </blockquote>
  
  <p>Does anybody have a solution for that or is it even possible to call phonegap plugins from an external website?</p>
  
  <p>PS: I have a working example of ChildBrowser but my android app is reading from</p>
  
  <pre><code>super.loadUrl("file:///android_asset/www/index.html");
  </code></pre>