public void start() { File previewImageFile; previewImageFile = AppDirectory.getPreviewFile(new File(pendingHandle.toString())); setPendingPreviewGenerator( new OsmPreviewGenerator(scontext, pendingHandle.getGpxList(), previewImageFile)); state.ping(); }
private void removeFileFromDatabase(String name) throws IOException { final File file = new File(directory, name); AppDirectory.getPreviewFile(file).delete(); database.deleteEntry(file); }