title: Phonegap Android: Unknown chromium error: -6
body: <p>I'm creating a Phonegap Android app and I'm having trouble when adding a plugin to it. Cordova version is 2.2.0. I'm not using jQM or Sencha Touch. I test the app on Android 4.0.</p>
  
  <p>The plugin I refer to is <a href="https://github.com/phonegap/phonegap-plugins/tree/master/Android/DatePicker" rel="noreferrer">Android Phonegap plugin</a>. This is my <code>index.html</code> file:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      ...
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div class="wrapper"&gt;
        ...
      &lt;/div&gt;
  
      &lt;script type="text/javascript" src="vendor/cordova-2.2.0.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="assets/application.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/index.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/datePickerPlugin.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my main Java file:</p>
  
  <pre><code>import android.app.Activity;
  import android.os.Bundle;
  import org.apache.cordova.*;
  
  public class looker extends DroidGap
      {
          @Override
          public void onCreate(Bundle savedInstanceState)
              {
                  super.onCreate(savedInstanceState);
                  super.setIntegerProperty("splashscreen", R.drawable.splash);
                  super.loadUrl("file:///android_asset/www/index.html", 7000);
              }
      }
  </code></pre>
  
  <p>So in order to understand if the problem is within the plugin, I <strong>minimized</strong> <a href="https://github.com/phonegap/phonegap-plugins/blob/master/Android/DatePicker/datePickerPlugin.js" rel="noreferrer">this file</a> in <code>assets/application.js</code> where all my minimized scripts I use are. I removed the script tag for the plugin from <code>index.html</code> and the plugin was working just fine! So it's got something to do with the URL's maybe?</p>
  
  <p><strong>What have I tried so far?</strong></p>
  
  <p>I was researching a lot and tried several solutions to other similar problems.</p>
  
  <ol>
  <li><p>Made sure I have 3 /'s for the <code>loadUrl</code> in my main class:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState)
      {
        super.onCreate(savedInstanceState);
        super.setIntegerProperty("splashscreen", R.drawable.splash);
        super.loadUrl("file:///android_asset/www/index.html", 7000);
      }
  </code></pre>
  
  <p>Had that from the very beginning, <strong>didn't make any difference</strong>.</p></li>
  <li><p>Tried calling super.init() before super.loadUrl(). <strong>Didn't work as well</strong>.</p></li>
  <li><p>Tried this:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      super.init();
      super.setIntegerProperty("loadUrlTimeoutValue", 6000);
      super.loadUrl("file:///android_asset/www/index.html");
  }
  </code></pre>
  
  <p><strong>Still not fixing the problem.</strong></p></li>
  <li><p>Checked if the file is loaded in the app, by adding an <code>alert();</code>. <strong>It loads</strong>.</p></li>
  </ol>
  
  <p>That's in general. Will be glad to provide you with additional info if needed in order to resolve this issue. Thanks in advance!</p>