Commit e4bb0d44 authored by Elodie Gauthier's avatar Elodie Gauthier

Fix minor issues before delivery to partners

Precise message log in RecordElicitation.java

TODO: add "_elicit" in the filename of a recording
make in ElicitationMode.
parent bc5ad9e4
......@@ -94,7 +94,7 @@ public class RecordElicitation extends AikumaActivity {
initSession();
switch (choiceMode) {
case ElicitationMode.TEXT_MODE:
setContentView(R.layout.elicitation);
setContentView(R.layout.elicitation_text);
break;
case ElicitationMode.IMAGE_MODE:
setContentView(R.layout.elicitation_image);
......@@ -105,7 +105,7 @@ public class RecordElicitation extends AikumaActivity {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
break;
default:
setContentView(R.layout.elicitation);
setContentView(R.layout.elicitation_text);
break;
}
......@@ -129,6 +129,7 @@ public class RecordElicitation extends AikumaActivity {
break;
}
updateProgressBar();
Log.d(TAG, "Progress bar (onCreate state) = "+entityId+"/"+numberOfEntities);
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
......@@ -413,7 +414,7 @@ public class RecordElicitation extends AikumaActivity {
tvFrPhrase = (TextView) findViewById(R.id.tv_orig_phrase);
tvFrPhrase.setText(phrasePair[1]);
TextView tv = (TextView) findViewById(R.id.phrase_x);
tv.setText("Phrase" + entityId);
tv.setText("Phrase" + (entityId+1));
break;
case ElicitationMode.IMAGE_MODE:
loadImage();
......@@ -429,7 +430,7 @@ public class RecordElicitation extends AikumaActivity {
tv2.setText(entityId + "");
updateProgressBar();
Log.d(TAG, "Progress bar (saveOneRecord state) = "+entityId+"/"+numberOfEntities);
} catch (MicException e) {
this.finish();
......@@ -615,7 +616,7 @@ public class RecordElicitation extends AikumaActivity {
bufferedWriter.newLine();
bufferedWriter.flush();
} else {
bufferedWriter.write(ptrSelectedReference + " ; " + new File(filenamePath).getPath().replace(".wav", "_"+entityId+".wav"));
bufferedWriter.write(ptrSelectedReference + " (line "+ (entityId+1) + ") ; " + new File(filenamePath).getPath().replace(".wav", "_"+entityId+".wav"));
Log.d(TAG, "linker content : " + ptrSelectedReference + " (line "+ (entityId+1) + ") ; " + new File(filenamePath).getPath().replace(".wav", "_"+entityId+".wav"));
bufferedWriter.newLine();
bufferedWriter.flush();
......@@ -805,9 +806,9 @@ public class RecordElicitation extends AikumaActivity {
mapFile.delete();
metadataFile.delete();
wavFile.delete();
Log.i(TAG, "map file deleted: "+mapFile);
Log.i(TAG, "metadata file deleted: "+metadataFile);
Log.i(TAG, "wave file deleted: "+wavFile);
Log.i(TAG, "temp map file deleted: "+mapFile);
Log.i(TAG, "temp metadata file deleted: "+metadataFile);
Log.i(TAG, "temp wave file deleted: "+wavFile);
if (isNewSession) {
RecordElicitation.this.finish();
} else {
......
......@@ -189,7 +189,7 @@ public class ThumbRespeakActivityLig extends AikumaActivity {
*/
private void saveCurrentState() {
Log.d("saveCurrentSession", "true");
Toast.makeText(this, "save current not finished session", Toast.LENGTH_SHORT).show();
Toast.makeText(this, "The session has been saved.", Toast.LENGTH_SHORT).show();
duration = respeaker.getSimplePlayer().getCurrentMsec();
Date date = new Date();
DateFormat dateformat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment