project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadAsyncTask.java
changeset 6751 7c75941b499b
parent 6700 e04da46ee43c
child 6842 2e6391f33204
equal deleted inserted replaced
6750:5eb087708fbd 6751:7c75941b499b
    71 		HttpURLConnection conn = null;
    71 		HttpURLConnection conn = null;
    72 		MessageDigest digester = null;
    72 		MessageDigest digester = null;
    73 		String rootZipDest = pack.getPathToStore();
    73 		String rootZipDest = pack.getPathToStore();
    74 
    74 
    75 		File rootDest = new File(rootZipDest);//TODO check for nullpointer, it hints to the absence of an sdcard
    75 		File rootDest = new File(rootZipDest);//TODO check for nullpointer, it hints to the absence of an sdcard
    76 		rootDest.mkdir();
    76 		rootDest.mkdirs();
    77 
    77 
    78 		try {
    78 		try {
    79 			URL url = new URL(pack.getURL() + URL_ZIP_SUFFIX);
    79 			URL url = new URL(pack.getURL() + URL_ZIP_SUFFIX);
    80 			conn = (HttpURLConnection)url.openConnection();
    80 			conn = (HttpURLConnection)url.openConnection();
    81 		} catch (IOException e) {
    81 		} catch (IOException e) {