From eb744a6e34d75e5d080809d7337aaa6686c94005 Mon Sep 17 00:00:00 2001 From: "Olga.shcherb" Date: Thu, 6 May 2010 20:23:41 +0000 Subject: [PATCH] fix bug with mkdir git-svn-id: https://osmand.googlecode.com/svn/trunk@40 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8 --- OsmAnd/src/com/osmand/ResourceManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/com/osmand/ResourceManager.java b/OsmAnd/src/com/osmand/ResourceManager.java index 13bb8cd8d4..cccd266aeb 100644 --- a/OsmAnd/src/com/osmand/ResourceManager.java +++ b/OsmAnd/src/com/osmand/ResourceManager.java @@ -70,6 +70,10 @@ public class ResourceManager { // TODO start/stop this thread when needed? asyncLoadingTiles.start(); dirWithTiles = new File(Environment.getExternalStorageDirectory(), TILES_PATH); + if(Environment.getExternalStorageDirectory().canRead()){ + dirWithTiles.mkdirs(); + } + } /// Working with tiles ///