From fa6efe49f9c97da38a919e9e09be39049e079025 Mon Sep 17 00:00:00 2001 From: pelya Date: Thu, 7 Oct 2010 14:06:25 +0300 Subject: [PATCH] Add .nomedia file to SDCard so game GFX won't show in Gallery app --- project/src/DataDownloader.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/project/src/DataDownloader.java b/project/src/DataDownloader.java index 4528fe0e4..6a79e26b1 100644 --- a/project/src/DataDownloader.java +++ b/project/src/DataDownloader.java @@ -204,7 +204,13 @@ class DataDownloader extends Thread { try { (new File( outFilesDir )).mkdirs(); - } catch( SecurityException e ) { }; + OutputStream out = new FileOutputStream( getOutFilePath(".nomedia") ); + out.flush(); + out.close(); + } + catch( SecurityException e ) {} + catch( FileNotFoundException e ) {} + catch( IOException e ) {}; } HttpResponse response = null;