- GpxExporter.exportData(_writer, _app.getTrackInfo(), _nameField.getText(), null, saveFlags, false);
- _writer.close();
- } catch (IOException e) {
- e.printStackTrace();
+ GpxExporter.exportData(_writer, _app.getTrackInfo(), _nameField.getText(),
+ null, new SettingsForExport(), null);
+ } catch (IOException e) {}
+ finally {
+ try {_writer.close();} catch (IOException e) {}