@Override public void initializeBundle() throws IOException, BundleTestException { File bundleOutputDir = ((OSMCBSettings) ACApp.getApp().getSettings()).getChartBundleOutputDirectory(); bundleOutputDir = new File(bundleOutputDir, "OsmAnd-SQLITE"); OSMCBUtilities.mkDirs(bundleOutputDir); SimpleDateFormat sdf = new SimpleDateFormat(STR_BUFMT); String bundleDirName = "OSM-OsmAnd-sqlitedb-" + mBundle.getName() + "-" + sdf.format(new Date()); bundleOutputDir = new File(bundleOutputDir, bundleDirName); super.initializeBundle(bundleOutputDir); databaseFile = new File(mOutputDir, getDatabaseFileName()); log.debug("SQLite Database file: " + databaseFile); }
// @Override // protected void abort() // { // SQLiteLoader.closeConnection(conn); // conn = null; // } // @Override public void finishBundle() { SQLiteLoader.closeConnection(conn); conn = null; super.finishBundle(); }