/[aagtl_public1]/src/com/zoffcc/applications/aagtl/ImageManager.java
aagtl

Diff of /src/com/zoffcc/applications/aagtl/ImageManager.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 3 Revision 4
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();

Legend:
Removed from v.3  
changed lines
  Added in v.4

   
Visit the aagtl Website