title: Cordova WebView TIMEOUT ERROR with android
body: <p>I am trying a simple application where I want to display my mobile website inside a native wrapper in android. I am following the documentation where the only change I am making is with loadUrl where instead of loading the CordovaWebView with index.html from assets folder, I will  be pointing it to a mobile website, say <a href="https://www.google.com" rel="noreferrer">https://www.google.com</a></p>
  
  <p>The webview app comes up but there isn a CordovaWebView TIMEOUT ERROR received. following are the snippets from my code</p>
  
  <pre><code>public class CordovaWebViewActivity extends Activity implements CordovaInterface{
  
      private CordovaWebView webView;
      private static final String TAG = "CORDOVA_WEBVIEW_ACTIVITY";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_cordova_web_view);
  
          webView = (CordovaWebView)findViewById(R.id.webview);
          webView.loadUrl("https://www.google.com");
  
  
      }
  
     @Override
     public Activity getActivity() {
      return this;
     }
     //... other overrided methods from interface
  }
  </code></pre>
  
  <p>and when I run the code, I get the following error in my console DDMS</p>
  
  <pre><code>07-31 20:56:08.737: D/dalvikvm(2016): GC_FOR_ALLOC freed 42K, 6% free 2780K/2928K, paused 23ms, total 25ms
  07-31 20:56:08.746: I/dalvikvm-heap(2016): Grow heap (frag case) to 3.887MB for 1127536-byte allocation
  07-31 20:56:08.777: D/dalvikvm(2016): GC_FOR_ALLOC freed 2K, 4% free 3879K/4032K, paused 36ms, total 36ms
  07-31 20:56:08.836: D/CordovaWebView(2016): CordovaWebView is running on device made by: unknown
  07-31 20:56:08.836: D/JsMessageQueue(2016): Set native-&gt;JS mode to 2
  07-31 20:56:08.996: D/gralloc_goldfish(2016): Emulator without GPU emulation detected.
  07-31 20:56:09.376: E/cutils-trace(2016): Error opening trace file: No such file or directory (2)
  07-31 20:56:09.687: D/TilesManager(2016): Starting TG #0, 0x2a26cc40
  07-31 20:56:28.874: E/CordovaWebView(2016): CordovaWebView: TIMEOUT ERROR!
  </code></pre>
  
  <p>I have config.xml in my /res/xml folder that has the following</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="io.cordova.helloCordova" version="2.0.0" xmlns="http://www.w3.org/ns/widgets"&gt;
      &lt;name&gt;Hello Cordova&lt;/name&gt;
      &lt;description&gt;
          A sample Apache Cordova application that responds to the deviceready event.
      &lt;/description&gt;
      &lt;author email="dev@cordova.apache.org" href="http://cordova.io"&gt;
          Apache Cordova Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;feature name="App"&gt;
          &lt;param name="android-package" value="org.apache.cordova.App" /&gt;
      &lt;/feature&gt;
      &lt;access origin="*" /&gt;
      &lt;preference name="useBrowserHistory" value="true" /&gt;
      &lt;preference name="exit-on-suspend" value="false" /&gt;
      &lt;preference name="fullscreen" value="true" /&gt;
      &lt;preference name="webviewbounce" value="true" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>and i also have a cordova.xml in my /res/xml folder</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;cordova&gt;
  
      &lt;access origin="http://127.0.0.1*"/&gt; &lt;!-- allow local pages --&gt;
      &lt;access origin="https://www.google.com" /&gt;
  
  
      &lt;log level="DEBUG"/&gt;
      &lt;preference name="useBrowserHistory" value="false" /&gt;
  &lt;/cordova&gt;
  </code></pre>
  
  <p>Please help what am I missing or doing wrong?</p>