title: Cordova 5.0.0 android app can not connect to internet using android 4.0.0
body: <p>I m developing the cordova applicatin using windows 7. The emulator can connect internet with browser but the app failed with network error</p>
  
  <p>check the [link here]</p>
  
  <p>Using the the latest cordova android 4.0.0 for devleopment </p>
  
  <p>Cordova 5.0.0
  Cordova-android 4.0.0</p>
  
  <p>I have already added the whitelist as a new plugin to the cordova project. check the <a href="http://innotive.zhao.nu/wp-content/uploads/2015/04/Capture_plugin.png" rel="noreferrer">link here</a></p>
  
  <p>My config.xml file is defined as below, the access is given to all URL. I really dont know where it could go wrong. Please advice.</p>
  
  <pre><code>   &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
     &lt;widget xmlns     = "http://www.w3.org/ns/widgets"
          xmlns:gap = "http://phonegap.com/ns/1.0"
          id        = "com.vs.VSMF"
          version   = "1.0.0"&gt;
  
      &lt;name&gt;VSMF&lt;/name&gt;
  
      &lt;description&gt;
          VSMF project template.
      &lt;/description&gt;
  
      &lt;author href="" email="dong_dh@hotmail.com"&gt;
          Hua Dong
      &lt;/author&gt;
  
      &lt;!--
          Enable individual API permissions here.
          The "device" permission is required for the 'deviceready' event.
      --&gt;
      &lt;feature name="http://api.phonegap.com/1.0/device" /&gt;
  
      &lt;!--
          If you do not want any permissions to be added to your app, add the
          following tag to your config.xml; you will still have the INTERNET
          permission on your app, which PhoneGap requires.
      --&gt;
      &lt;preference name="permissions"                value="none"/&gt;
  
      &lt;!-- Customize your app and platform with the preference element. --&gt;
      &lt;!-- &lt;preference name="phonegap-version"      value="3.4.0" /&gt; --&gt;      &lt;!-- all: current version of PhoneGap --&gt;
      &lt;preference name="orientation"                value="default" /&gt;        &lt;!-- all: default means both landscape and portrait are enabled --&gt;
      &lt;preference name="target-device"              value="universal" /&gt;      &lt;!-- all: possible values handset, tablet, or universal --&gt;
      &lt;preference name="fullscreen"                 value="true" /&gt;           &lt;!-- all: hides the status bar at the top of the screen --&gt;
      &lt;preference name="disallowOverscroll"         value="true" /&gt;
      &lt;preference name="webviewbounce"              value="false" /&gt;           &lt;!-- ios: control whether the screen 'bounces' when scrolled beyond the top --&gt;
      &lt;preference name="prerendered-icon"           value="true" /&gt;           &lt;!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen --&gt;
      &lt;preference name="stay-in-webview"            value="false" /&gt;          &lt;!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in --&gt;
      &lt;preference name="ios-statusbarstyle"         value="black-opaque" /&gt;   &lt;!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar --&gt;
      &lt;preference name="detect-data-types"          value="true" /&gt;           &lt;!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system --&gt;
      &lt;preference name="exit-on-suspend"            value="false" /&gt;          &lt;!-- ios: if set to true, app will terminate when home button is pressed --&gt;
      &lt;preference name="show-splash-screen-spinner" value="true" /&gt;           &lt;!-- ios: if set to false, the spinner won't appear on the splash screen during app loading --&gt;
      &lt;preference name="auto-hide-splash-screen"    value="false" /&gt;           &lt;!-- ios: if set to false, the splash screen must be hidden using a JavaScript API --&gt;
      &lt;preference name="AutoHideSplashScreen" value="false" /&gt;
      &lt;preference name="SplashScreenDelay"          value="60000" /&gt;
      &lt;preference name="disable-cursor"             value="false" /&gt;          &lt;!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app --&gt;
      &lt;preference name="android-minSdkVersion"      value="17" /&gt;              &lt;!-- android: MIN SDK version supported on the target device. MAX version is blank by default. --&gt;
      &lt;preference name="android-installLocation"    value="auto" /&gt;           &lt;!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. --&gt;
      &lt;preference name="iosExtraFilesystems" value="library,library-nosync,documents,documents-nosync,cache,bundle,root" /&gt;
      &lt;preference name="iosPersistentFileLocation" value="Library" /&gt;
      &lt;preference name="AndroidExtraFilesystems" value="files,files-external,documents,sdcard,cache,cache-external,root" /&gt;
      &lt;preference name="AndroidPersistentFileLocation" value="Internal" /&gt;
      &lt;!-- Plugins can also be added here. --&gt;
      &lt;!--
          &lt;gap:plugin name="Example" /&gt;
          A list of available plugins are available at https://build.phonegap.com/docs/plugins
      --&gt;
      &lt;gap:plugin name="org.apache.cordova.console" /&gt;
      &lt;gap:plugin name="org.apache.cordova.network-information" /&gt;
  
      &lt;!-- Define app icon for each platform. --&gt;
      &lt;icon src="icon.png" /&gt;
      &lt;icon src="res/icon/android/icon-36-ldpi.png"   gap:platform="android"    gap:density="ldpi" /&gt;
      &lt;icon src="res/icon/android/icon-48-mdpi.png"   gap:platform="android"    gap:density="mdpi" /&gt;
      &lt;icon src="res/icon/android/icon-72-hdpi.png"   gap:platform="android"    gap:density="hdpi" /&gt;
      &lt;icon src="res/icon/android/icon-96-xhdpi.png"  gap:platform="android"    gap:density="xhdpi" /&gt;
      &lt;icon src="res/icon/blackberry/icon-80.png"     gap:platform="blackberry" /&gt;
      &lt;icon src="res/icon/blackberry/icon-80.png"     gap:platform="blackberry" gap:state="hover"/&gt;
      &lt;icon src="res/icon/ios/icon-57.png"            gap:platform="ios"        width="57" height="57" /&gt;
      &lt;icon src="res/icon/ios/icon-72.png"            gap:platform="ios"        width="72" height="72" /&gt;
      &lt;icon src="res/icon/ios/icon-57-2x.png"         gap:platform="ios"        width="114" height="114" /&gt;
      &lt;icon src="res/icon/ios/icon-72-2x.png"         gap:platform="ios"        width="144" height="144" /&gt;
      &lt;icon src="res/icon/webos/icon-64.png"          gap:platform="webos" /&gt;
      &lt;icon src="res/icon/windows-phone/icon-48.png"  gap:platform="winphone" /&gt;
      &lt;icon src="res/icon/windows-phone/icon-173.png" gap:platform="winphone"   gap:role="background" /&gt;
  
      &lt;!-- Define app splash screen for each platform. --&gt;
      &lt;gap:splash src="res/screen/android/screen-ldpi-portrait.png"  gap:platform="android" gap:density="ldpi" /&gt;
      &lt;gap:splash src="res/screen/android/screen-mdpi-portrait.png"  gap:platform="android" gap:density="mdpi" /&gt;
      &lt;gap:splash src="res/screen/android/screen-hdpi-portrait.png"  gap:platform="android" gap:density="hdpi" /&gt;
      &lt;gap:splash src="res/screen/android/screen-xhdpi-portrait.png" gap:platform="android" gap:density="xhdpi" /&gt;
      &lt;gap:splash src="res/screen/blackberry/screen-225.png"         gap:platform="blackberry" /&gt;
      &lt;gap:splash src="res/screen/ios/screen-iphone-portrait.png"    gap:platform="ios"     width="320" height="480" /&gt;
      &lt;gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png" gap:platform="ios"     width="640" height="960" /&gt;
      &lt;gap:splash src="res/screen/ios/screen-ipad-portrait.png"      gap:platform="ios"     width="768" height="1024" /&gt;
      &lt;gap:splash src="res/screen/ios/screen-ipad-landscape.png"     gap:platform="ios"     width="1024" height="768" /&gt;
      &lt;gap:splash src="res/screen/windows-phone/screen-portrait.jpg" gap:platform="winphone" /&gt;
  
      &lt;!--
          Define access to external domains.
  
          &lt;access /&gt;            - a blank access tag denies access to all external resources.
          &lt;access origin="*" /&gt; - a wildcard access tag allows access to all external resource.
  
          Otherwise, you can specify specific domains:
      --&gt;
      &lt;access origin="*"/&gt; &lt;!-- allow local pages --&gt;
      &lt;allow-navigation href="*" /&gt;
      &lt;allow-intent href="*" /&gt;
      &lt;!--
          &lt;access origin="http://phonegap.com" /&gt;                    - allow any secure requests to http://phonegap.com/
          &lt;access origin="http://phonegap.com" subdomains="true" /&gt;  - same as above, but including subdomains, such as http://build.phonegap.com/
          &lt;access origin="http://phonegap.com" browserOnly="true" /&gt; - only allows http://phonegap.com to be opened by the child browser.
      --&gt;
  
     &lt;/widget&gt;
  </code></pre>
  
  <p>in the androidmenifest.xml file , the permission is also given </p>
  
  <pre><code> &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  </code></pre>