fnp
/
wl-mobile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pretty much working version
[wl-mobile.git]
/
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
..
39032ae
100644
(file)
--- a/
src/pl/org/nowoczesnapolska/wlmobi/Downloader.java
+++ b/
src/pl/org/nowoczesnapolska/wlmobi/Downloader.java
@@
-39,7
+39,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);
try{
Log.d("DownloaderPlugin", "DIRECTORY CALLED "+dirName+" created");
File dir = new File(dirName);
@@
-56,6
+56,7
@@
public class Downloader extends Plugin{
}
URL url = new URL(fileUrl);
}
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);
HttpURLConnection ucon = (HttpURLConnection) url.openConnection();
ucon.setRequestMethod("GET");
ucon.setDoOutput(true);