… | |
… | |
47 | //Log.d("ImageManager", "download begining");
|
47 | //Log.d("ImageManager", "download begining");
|
48 | //Log.d("ImageManager", "download url:" + url);
|
48 | //Log.d("ImageManager", "download url:" + url);
|
49 | //Log.d("ImageManager", "downloaded file name:" + fileName);
|
49 | //Log.d("ImageManager", "downloaded file name:" + fileName);
|
50 | /* Open a connection to that URL. */
|
50 | /* Open a connection to that URL. */
|
51 | URLConnection ucon = url.openConnection();
|
51 | URLConnection ucon = url.openConnection();
|
52 | ucon.setConnectTimeout(10000);
|
52 | ucon.setConnectTimeout(5000);
|
53 | ucon.setReadTimeout(7000);
|
53 | ucon.setReadTimeout(3000);
|
54 |
|
54 |
|
55 | /*
|
55 | /*
|
56 | * Define InputStreams to read from the URLConnection.
|
56 | * Define InputStreams to read from the URLConnection.
|
57 | */
|
57 | */
|
58 | InputStream is = ucon.getInputStream();
|
58 | InputStream is = ucon.getInputStream();
|