![](/img/trans.png)
[英]Phonegap fileTransfer.Download is not working error code 3
[英]Filetransfer.download not working properly in some mobiles
下面是我的代碼(表單是我要下載的文件的名稱)
var fileURI = "http://myurl/"+form;
window.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(fs){
var filepath = fs.root.fullPath + "storage/emulated/0/Download/" + Form;
alert(filepath);
var ft = new FileTransfer();
ft.download(fileURI, filepath, function(entry){
alert(entry.fullPath);
}, function() {
alert("error");
});
});
令人驚訝的是,該代碼在我的android手機上可以正常工作,但對於正在使用此應用程序的其他android設備卻並非如此。 目前我很沮喪,任何形式的幫助目前都將是驚人的。 TIA
window.open('url','_system');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.