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

      AppDirectory.getPreviewFile(file).delete();
      database.deleteEntry(file);
    }