I use Phonegap 1.9.0 on Android, but there are few examples on the Internet, so I'm worried about downloading the file.
var ft = new FileTransfer(); ft.download( "http://www.something.com/test.zip", "test.zip", // <- Trouble 1 function(entry) { alert("success"); }, function(err) { alert(err); // <- Trouble 2 } );
1. I do not understand the way of specifying the file path suitable for this argument. How to specify a local path? Or is there any necessary Android.permission?
2. The message "Class not found" is displayed. What is the reason?
3. What is the path in the native Java uploaded file?
source share