![](/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.