diff --git a/OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java b/OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java index 6a6bb0a160..33302e38ad 100644 --- a/OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java +++ b/OsmAnd/src/net/osmand/plus/audionotes/NotesFragment.java @@ -234,8 +234,8 @@ public class NotesFragment extends OsmAndListFragment { } private File generateGPXForRecordings(ArrayList selected) { - File cacheDir = getActivity().getCacheDir(); - File tmpFile = new File(cacheDir, "noteLocations.gpx"); + File tmpFile = getMyApplication().getAppPath("cache/noteLocations.gpx"); + tmpFile.getParentFile().mkdirs(); GPXFile file = new GPXFile(); for(Recording r : selected) { if(r != shareLocationFile) {