The android downloader plugin works great. However if you are running on cordova 2.0 you will need to modify the code for adding a constructor. The current code is:
...
PhoneGap.addConstructor(function() {
PhoneGap.addPlugin("downloader", new Downloader());
PluginManager.addService("Downloader", "com.phonegap.plugins.downloader.Downloader");
});
Since addPlugin no longer works on cordova 2.0 you will need to remove the addConstructor method and replace it with:
window.downloader = new Downloader();
And on the exec method should look like this:
cordova.exec(win, fail, "Downloader", "downloadFile", [fileUrl, params]);
Instead of using the Phonegap object. After I did all this, the plugin worked. The entire js should look like this:
function Downloader() {}
Downloader.prototype.downloadFile = function(fileUrl, params, win, fail) {
//Make params hash optional.
if (!fail) win = params;
cordova.exec(win, fail, "Downloader", "downloadFile", [fileUrl, params]);
};
window.downloader = new Downloader();