X-Git-Url: https://git.mdrn.pl/wl-mobile.git/blobdiff_plain/2f315aa89bfdc0be1cb84ef27809be8886e55abe..34bb7f2c593c073ff871ed732bf16e298abe6837:/src/pl/org/nowoczesnapolska/wlmobi/Downloader.java diff --git a/src/pl/org/nowoczesnapolska/wlmobi/Downloader.java b/src/pl/org/nowoczesnapolska/wlmobi/Downloader.java index be5a7e9..459891b 100644 --- a/src/pl/org/nowoczesnapolska/wlmobi/Downloader.java +++ b/src/pl/org/nowoczesnapolska/wlmobi/Downloader.java @@ -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);