Create in an accessible folder

This commit is contained in:
Victor Shcherb 2015-08-31 01:31:11 +02:00
parent f3607fb5b9
commit 47b4d3151a

View file

@ -234,8 +234,8 @@ public class NotesFragment extends OsmAndListFragment {
}
private File generateGPXForRecordings(ArrayList<Recording> 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) {