copying info
[wl-mobile.git] / src / pl / org / nowoczesnapolska / wlmobi / Downloader.java
index be5a7e9..459891b 100644 (file)
@@ -11,7 +11,6 @@ import org.json.JSONException;
  
 import android.util.Log;
  
-import com.phonegap.DroidGap;
 import com.phonegap.api.Plugin;
 import com.phonegap.api.PluginResult;
  
@@ -39,7 +38,7 @@ public class Downloader extends Plugin{
  
  }
  
private PluginResult downloadUrl(String fileUrl, String dirName, String fileName, String overwrite){
+ PluginResult downloadUrl(String fileUrl, String dirName, String fileName, String overwrite){
  try{
  Log.d("DownloaderPlugin", "DIRECTORY CALLED "+dirName+" created");
  File dir =     new File(dirName);
@@ -56,6 +55,7 @@ public class Downloader extends Plugin{
  }
  
  URL url = new URL(fileUrl);
+ Log.d("DownloaderPlugin", "connecting to server for downloading " + url);
  HttpURLConnection ucon = (HttpURLConnection) url.openConnection();
  ucon.setRequestMethod("GET");
  ucon.setDoOutput(true);