public void rcdSpnName() { File tempWav = null; try { PromptList prePl = null; File nameFile = m_mailbox.getRecordedNameFile(); if (nameFile.exists()) { prePl = new PromptList(m_vm.getLoc()); prePl.addPrompts(nameFile.getPath()); } tempWav = makeTempWavFile(); File recordingFile = recordDialog(prePl, tempWav, "record_name", "confirm_name"); if (recordingFile == null) { FileUtils.deleteQuietly(tempWav); tempWav = null; return; } // Save the recording as the name if (nameFile.exists()) { nameFile.delete(); } recordingFile.renameTo(nameFile); tempWav = null; ExtMailStore.SaveSpokenNameInFolder(m_mailbox, nameFile); } finally { if (tempWav != null) { FileUtils.deleteQuietly(tempWav); } } return; }