fix bug with mkdir

git-svn-id: https://osmand.googlecode.com/svn/trunk@40 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Olga.shcherb 2010-05-06 20:23:41 +00:00
parent 00a5d78f59
commit eb744a6e34

View file

@ -70,6 +70,10 @@ public class ResourceManager {
// TODO start/stop this thread when needed? // TODO start/stop this thread when needed?
asyncLoadingTiles.start(); asyncLoadingTiles.start();
dirWithTiles = new File(Environment.getExternalStorageDirectory(), TILES_PATH); dirWithTiles = new File(Environment.getExternalStorageDirectory(), TILES_PATH);
if(Environment.getExternalStorageDirectory().canRead()){
dirWithTiles.mkdirs();
}
} }
/// Working with tiles /// /// Working with tiles ///