title: Using FileTransfer API for Phonegap on Android download fails
body: <p>I am trying to implement the FileTransfer API for my Phonegap App in Javascript.  When I call it with the code below I get the following error:</p>
  
  <pre><code>01-24 00:36:10.495: I/Web Console(14802): Error: SyntaxError: Unexpected identifier at file:///android_asset/www/js/phonegap-1.3.0.js:670
  </code></pre>
  
  <p>Code to call download</p>
  
  <pre><code>var fileTransfer1 = new FileTransfer();
  
  fileTransfer1.download(
      "http://www.domain.com/images/file.png",
      "/sdcard/file.png",
      function(entry) {
          alert("download complete: " + entry.fullPath);
      },
      function(error) {
          alert("upload error code" + error.code);
     }
  );
  </code></pre>
  
  <p>I have this in my Manifest:
      </p>
  
  <p>I have this in my config:
      
      </p>
  
  <p>I have cordova-2.2.0.jar in my libs folder and phonegap-1.3.0.js is an included javascript.  I did some debugging in phonegap-1.3.0.js and the error is in the call to prompt:</p>
  
  <p>var r = prompt(JSON.stringify(args), "gap:"+JSON.stringify([service, action, callbackId, true]));</p>
  
  <p>It is returing "29 F08 FileTransfer() sJSON error"  this is passed to an eval function which of course fails.  It would seem I am missing something in my setup somewhere.  Any ideas?</p>
  
  <p>Thanks</p>