private static void verifyExternalStorageForExport() throws NoExternalStorageException { if (!Environment.getExternalStorageDirectory().canWrite()) throw new NoExternalStorageException(); String exportDirectoryPath = getExportDirectoryPath(); File exportDirectory = new File(exportDirectoryPath); if (!exportDirectory.exists()) exportDirectory.mkdir(); } private static void verifyExternalStorageForImport() throws NoExternalStorageException { if (!Environment.getExternalStorageDirectory().canRead() || !(new File(getExportDirectoryPath()).exists())) throw new NoExternalStorageException(); } private static void migrateFile(File from, File to) { try { if (from.exists()) {