Fixed another bug in Data Downloader

This commit is contained in:
pelya
2010-08-27 19:00:49 +03:00
parent 4f3afa5081
commit 802e8340d7
16 changed files with 46 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
// This string is autogenerated by ChangeAppSettings.sh, do not change spaces amount
package com.sourceforge.sc2;
package de.schwardtnet.alienblaster;
import android.app.Activity;
import android.content.Context;
@@ -243,6 +243,8 @@ class DataDownloader extends Thread
System.out.println("Failed to connect to " + url);
downloadUrlIndex++;
}
else
break;
}
}
if( response == null )
@@ -267,6 +269,10 @@ class DataDownloader extends Thread
downloadUrls[downloadUrlIndex].indexOf(":", 1) ));
OutputStream out = null;
try {
try {
(new File( path.substring(0, path.lastIndexOf("/") ))).mkdirs();
} catch( SecurityException e ) { };
out = new FileOutputStream( path );
} catch( FileNotFoundException e ) {
} catch( SecurityException e ) { };