title: Cordova read external archive and play
body: <p>I am creating an app with cordova for android using plugin file-transfer. The download is going to a certain folder but I can't read the file despite indicating the correct path follows the code</p>
  <pre><code>var uri = encodeURI(mypage);
             var fileURL =  cordova.file.externalDataDirectory + &quot;teste.ogg&quot;;
  
             fileTransfer.download(
                uri, fileURL, function(entry) {
                      console.log(&quot;download complete: &quot; + entry.toURL());
                    $(&quot;#audio-teste&quot;).attr('src',fileURL)
                    /*--codigo de teste--*/
              var meuFile = cordova.file.externalDataDirectory;
                    resolveLocalFileSystemURL(meuFile, function(entry) {
                        
                        var readerN = fileSystem.createReader();
                        readerN.readEntries(
                            function (entry) {
                                var arrayN =[];
                          for(var i=&quot;0&quot;; i &lt; entry.length; ++i){
                              var entradaN = entry[i].name;
                              arrayN.push(entradaN);
                              //console.log(array);
                              console.log('teste aq' + arrayN);
                          }
                            }
                        )
                        //console.log(entry);
                    });
              
                    /*----*/
                    
                },
  
                function(error) {
                   console.log(&quot;download error source &quot; + error.source);
                   console.log(&quot;download error target &quot; + error.target);
                   console.log(&quot;download error code&quot; + error.code);
                },
  
                false, {
                   headers: {
                      &quot;Authorization&quot;: &quot;Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA==&quot;
                   }
                }
             );
            
            /*----*/
              
  </code></pre>