From: rikky Date: Sun, 29 Apr 2012 10:27:14 +0000 (+0000) Subject: Fix:Android:Fix for failing resource extraction X-Git-Tag: navit-0.5.0.5194svn~139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ed60caa0534c2a19d62ccc8531046e232872063;p=profile%2Fivi%2Fnavit.git Fix:Android:Fix for failing resource extraction git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5056 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/android/src/org/navitproject/navit/Navit.java b/navit/navit/android/src/org/navitproject/navit/Navit.java index 61c42ed..73af332 100644 --- a/navit/navit/android/src/org/navitproject/navit/Navit.java +++ b/navit/navit/android/src/org/navitproject/navit/Navit.java @@ -125,7 +125,7 @@ public class Navit extends Activity File resultfile = new File(result); if (!resultfile.exists()) { needs_update = true; - if (!resultfile.mkdirs()) + if (!resultfile.getParentFile().mkdirs()) return false; } else { PackageManager pm = getPackageManager();