Commit a6258cc4 authored by CallisteHanriat's avatar CallisteHanriat

fix mm/MM problem on date (minute vs Month) + imrovment on keyboard entry for metadata

parent aa71a9e2
......@@ -253,8 +253,7 @@
android:layout_marginRight="20dp"
android:layout_weight="1"
android:ems="10"
android:textSize="18sp"
android:inputType="text"/>
android:textSize="18sp" />
</LinearLayout>
</LinearLayout>
......
......@@ -419,7 +419,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10" />
android:ems="10"
android:inputType="textPersonName" />
</LinearLayout>
<LinearLayout
......@@ -457,7 +458,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10" />
android:ems="10"
android:inputType="number" />
</LinearLayout>
<LinearLayout
......
......@@ -174,11 +174,10 @@ public class RecordActivityLig extends RecordActivity {
String deviceName = Aikuma.getDeviceName();
String androidID = Aikuma.getAndroidID();
String idDevice = Aikuma.getDeviceId();
Log.d("androidID", androidID);
ArrayList<String> speakerIds = new ArrayList<String>();
Double latitude = MainActivity.locationDetector.getLatitude();
Double longitude = MainActivity.locationDetector.getLongitude();
String name = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(date) + "_" + recordLang.getCode()
String name = new SimpleDateFormat("yyMMdd-hhmmss").format(date) + "_" + recordLang.getCode()
+ "_" + idDevice;
Log.d("new_name", name);
......
......@@ -135,10 +135,11 @@ public class ThumbRespeakActivityLig extends AikumaActivity {
String speakerName = respeakingBundle.getString(RecordingMetadataLig.metaSpkrName);
int speakerAge = respeakingBundle.getInt(RecordingMetadataLig.metaSpkrAge);
String mode = translateMode ? "_translate_" : "_respeak_";
String mode = translateMode ? "_trsl" : "_rspk";
String name = metadataIntent.getStringExtra("dirname")
+ mode + new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(date)
+ "_" + deviceName + "_" + recordLang.getCode();
+ mode;
Log.d("name of file ", name);
// + "_respeak_" + new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(date)
// + "_" + deviceName + "_" + rspkLanguages.get(0).getCode();
// if (speakerGender == RecordingMetadataLig.GENDER_MALE)
......
......@@ -188,7 +188,7 @@ public class ThumbRespeakSummaryLig extends AikumaActivity implements OnClickLis
@Override
public void onClick(View v) {
// Toast.makeText(this, "Record Button activates", Toast.LENGTH_SHORT).show();
Toast.makeText(this, "Record Button activates", Toast.LENGTH_SHORT).show();
Log.i(TAG, "id: " + v.getId());
if (v.getId() == okButtonId) {
try {
......
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