title: URI not supported by CordovaResourceApi
body: <p>I am trying to to download a file and save it (overwrite it if is the case) in my <strong>www</strong> folder of the app.</p>
  
  <p>Can you please guide me to some code example? </p>
  
  <p>This is my code i tried:</p>
  
  <pre><code>document.addEventListener("deviceready", init, false);
  
  var store2;
  
  var assetURL = "http://www.mydomain.eu/path/untitled.png";
  
  var fileName = "bg.png";
  
  function init() {
      try {
  
         store2 = cordova.file.applicationDirectory + 'www/';              
  
      }
      catch (err) {
          alert("Error: " + err.message);
      }
  }
  
  function downloadAsset2() {
  
      try {
          var fileTransfer = new FileTransfer();
          alert("aa-&gt;" + store2 + fileName)
          fileTransfer.download(assetURL, store2 + fileName,
              function (entry) {
  
                  location.reload();
                  alert("-&gt;" + store2 + fileName)
              },
              function (err) {                
                  alert(JSON.stringify(err, null, 4));
              });
      }
      catch (err) {
          alert("Error: " + err.message);
      }
  }
  </code></pre>
  
  <p>and this is the error i get</p>
  
  <pre><code>URI not supported by CordovaResourceApi: file:///android_asset/www/bg.png
  </code></pre>