Put app data files into correct place instead of /sdcard/app-data/..

This commit is contained in:
pelya
2012-08-13 23:08:28 +03:00
parent 254c957fdc
commit 046e36acd3
8 changed files with 71 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
Java source code (C) 2009-2011 Sergii Pylypenko
Java source code (C) 2009-2012 Sergii Pylypenko
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -122,6 +122,9 @@ class CountingInputStream extends BufferedInputStream {
class DataDownloader extends Thread
{
public static final String DOWNLOAD_FLAG_FILENAME = "libsdl-DownloadFinished-";
class StatusWriter
{
private TextView Status;
@@ -200,7 +203,7 @@ class DataDownloader extends Thread
( Globals.OptionalDataDownload.length > i && Globals.OptionalDataDownload[i] ) ||
( Globals.OptionalDataDownload.length <= i && downloadFiles[i].indexOf("!") == 0 ) )
{
if( ! DownloadDataFile(downloadFiles[i], "libsdl-DownloadFinished-" + String.valueOf(i) + ".flag", count+1, total) )
if( ! DownloadDataFile(downloadFiles[i], DOWNLOAD_FLAG_FILENAME + String.valueOf(i) + ".flag", count+1, total) )
{
DownloadFailed = true;
return;
@@ -604,6 +607,8 @@ class DataDownloader extends Thread
private static DefaultHttpClient HttpWithDisabledSslCertCheck()
{
return new DefaultHttpClient();
// This code does not work
/*
HostnameVerifier hostnameVerifier = org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER;
@@ -619,8 +624,7 @@ class DataDownloader extends Thread
HttpsURLConnection.setDefaultHostnameVerifier(hostnameVerifier);
return http;
*/
return new DefaultHttpClient();
*/
}
public StatusWriter Status;