diff --git a/app/src/main/java/com/danielkim/soundrecorder/RecordingService.java b/app/src/main/java/com/danielkim/soundrecorder/RecordingService.java index 5aa935a6..613ecf8e 100644 --- a/app/src/main/java/com/danielkim/soundrecorder/RecordingService.java +++ b/app/src/main/java/com/danielkim/soundrecorder/RecordingService.java @@ -18,6 +18,7 @@ import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; +import java.util.Date; import java.util.Locale; import java.util.Timer; import java.util.TimerTask; @@ -41,6 +42,7 @@ public class RecordingService extends Service { private int mElapsedSeconds = 0; private OnTimerChangedListener onTimerChangedListener = null; private static final SimpleDateFormat mTimerFormat = new SimpleDateFormat("mm:ss", Locale.getDefault()); + private static final SimpleDateFormat mFileFormat = new SimpleDateFormat("yyyy-MM-dd kk.mm.ss", Locale.getDefault()); private Timer mTimer = null; private TimerTask mIncrementTimerTask = null; @@ -99,14 +101,10 @@ public void startRecording() { } public void setFileNameAndPath(){ - int count = 0; File f; do{ - count++; - - mFileName = getString(R.string.default_file_name) - + " #" + (mDatabase.getCount() + count) + ".mp4"; + mFileName = mFileFormat.format(new Date()) + ".mp4"; mFilePath = Environment.getExternalStorageDirectory().getAbsolutePath(); mFilePath += "/SoundRecorder/" + mFileName; diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 525548c0..16c47ea5 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -34,7 +34,6 @@ Žádné uložené nahrávky Pauza Pokračovat - Můj záznam Klepněte na tlačítko pro spuštění nahrávání Záznam diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 013e2c1f..28e759d0 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -34,7 +34,6 @@ Keine gespeicherten Aufnahmen Pause Fortfahren - Meine Aufzeichnung Berühre den Button, um die Aufzeichnung zu starten Nehme auf diff --git a/app/src/main/res/values-eo/strings.xml b/app/src/main/res/values-eo/strings.xml index 5c2f55c1..61d36f26 100644 --- a/app/src/main/res/values-eo/strings.xml +++ b/app/src/main/res/values-eo/strings.xml @@ -34,7 +34,6 @@ Neniu konservataj registraĵoj Paŭzigi Daŭrigi - Miaj registraĵoj Premi la butonon por ekregistri Registrado diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 465df114..3237dd9a 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -34,7 +34,6 @@ Sin grabaciones guardadas Pausar Continuar - Mi grabación Pulse el botón para iniciar la grabación Grabando diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index 06c54247..4115da2d 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -34,7 +34,6 @@ Ei tallennettuja äänityksiä Tauko Jatka - Äänitykseni Napauta painiketta aloittaaksesi äänittämisen Äänitetään diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 882fb9f3..c5908042 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -34,7 +34,6 @@ Aucun enregistrement Pause Reprendre - Enregistrement Appuyez sur le bouton pour démarrer l\'enregistrement Enregistrement en cours diff --git a/app/src/main/res/values-he/strings.xml b/app/src/main/res/values-he/strings.xml index e9f7930e..ba4fe4b5 100644 --- a/app/src/main/res/values-he/strings.xml +++ b/app/src/main/res/values-he/strings.xml @@ -34,7 +34,6 @@ אין הקלטות שמורות השהה חזור - הקלטה הקש על הכפתור כדי להקליט כעת מקליט diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 15fafc5b..fd60e35c 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -34,7 +34,6 @@ Nessuna registrazione salvata Pausa Riprendi - Le mie registrazioni Premi il bottone per iniziare a registrare Registrazione in corso diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index cd42ebf7..2cc92b73 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -32,7 +32,6 @@ Нет сохраненных записей Пауза Продолжить - Запись Нажмите на кнопку, чтобы начать запись Запись Настройки diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index fc052913..07671729 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -34,7 +34,6 @@ No saved recordings Pause Resume - My Recording Tap the button to start recording Recording