Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2d46898
making default db the username's db
cesine Jun 12, 2014
2722f05
adding support for speech recognition training app
cesine Jun 12, 2014
e5ec28d
created a production experiment datum fragment
cesine Jun 12, 2014
f3de322
displaying different background images based on tags (for category ba…
cesine Jun 12, 2014
c8c1aeb
added a list pager which makes it possible to swipe between datum
cesine Jun 12, 2014
997bfe8
scrollabel flash cards a bit more memory optimized and turning of acr…
cesine Jun 13, 2014
621854c
creating corpus directories in an app directory and playing instructi…
cesine Jun 13, 2014
9f991fe
auto advancing between stimuli/cards
cesine Jun 13, 2014
cd1f004
added a confirm dialog if users want to add their own words
cesine Jun 13, 2014
ac58490
adding a high res version of the speech bubbles for backgroun dimage
cesine Jun 13, 2014
c580815
aded a simple datum view for non-linguists fixes https://github.com/O…
cesine Jun 13, 2014
ef0fcf6
putting default datum list back to using the datum views not a view p…
cesine Jun 13, 2014
66edfbf
added audio upload for https://github.com/OpenSourceFieldlinguistics/…
cesine Jun 13, 2014
bb7e9bf
checking if the cursor is null
cesine Jun 13, 2014
2052c3f
adding bouncy castle but not upload not working yet
cesine Jun 13, 2014
6f47e87
uplaod is working
cesine Jun 14, 2014
31605e5
deployed v2.4.0
cesine Jun 14, 2014
a187c9d
downloading samples was on for the speechrec app
cesine Jun 14, 2014
fdd38df
corrections to acra found while doing https://github.com/OpenSourceFi…
cesine Jun 15, 2014
77c2b83
renaming production experiment activity
cesine Jun 15, 2014
638ea38
using a datum edit activity for the speech recognition hypothesis dis…
cesine Jun 16, 2014
b764885
matching parrnt to not underflow the action bar
cesine Jun 16, 2014
e7b3fbf
turning off the recording if you scroll to the next item
cesine Jun 16, 2014
51b6149
Speech recognition creates a new datum with validation status of Aut…
cesine Jun 16, 2014
a1cb854
new speech recognition interface is ready fixes https://github.com/ba…
cesine Jun 16, 2014
806db03
forcing locale to kartuli and adding color to the speech recognitoin …
cesine Jun 17, 2014
aa2ded4
new layout for horizontal tablets with buttons and text next to eacho…
cesine Jun 17, 2014
4ff0369
using speechrecognition as the app type and preparing for release
cesine Jun 17, 2014
7a5828b
Getting on focus change listeners to set the orthography isnt working
cesine Jun 17, 2014
ebe4eaf
dont need on buffered listener
cesine Jun 17, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.RegisterUserService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.UploadAudioVideoService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.KartuliSMSCorpusService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.KartuliWebSearchCorpusService" >
</service>
<service android:name="com.github.opensourcefieldlinguistics.fielddb.service.KartuliLegalSearchCorpusService" >
</service>

<provider
android:name="com.github.opensourcefieldlinguistics.fielddb.database.DatumContentProvider"
Expand All @@ -105,4 +113,4 @@
</provider>
</application>

</manifest>
</manifest>
Binary file added res/drawable/speech_bubbles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions res/layout-sw600dp/activity_welcome.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="2"
android:background="#232323"
android:gravity="center"
android:orientation="horizontal" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical" >


<ImageButton
android:id="@+id/train_speech_recognizer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#00000000"
android:gravity="center"
android:onClick="onTrainClick"
android:src="@drawable/speech_recognizer_listening" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/train"
android:textColor="#ffffff" />

<ImageButton
android:id="@+id/run_speech_recognizer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#00000000"
android:gravity="center"
android:onClick="onRecognizeClick"
android:src="@drawable/speech_recognizer_recognizing" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/recognize"
android:textColor="#cccccc" />
</LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="vertical" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:gravity="center"
android:onClick="goToWebSite"
android:text="@string/app_explanation"
android:textColor="#ffffff" />

</LinearLayout>

</LinearLayout>
13 changes: 13 additions & 0 deletions res/layout/activity_production_experiment_datum_list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<android.support.v4.view.ViewPager
android:id="@+android:id/viewpager"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</LinearLayout>
7 changes: 7 additions & 0 deletions res/layout/activity_speech_recognition.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/datum_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".SpeechRecognitionActivity"
tools:ignore="MergeRootFrame" />
54 changes: 54 additions & 0 deletions res/layout/activity_welcome.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#232323"
android:gravity="center" >

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical" >

<ImageButton
android:id="@+id/train_speech_recognizer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#00000000"
android:gravity="center"
android:onClick="onTrainClick"
android:src="@drawable/speech_recognizer_listening" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/train"
android:textColor="#ffffff" />

<ImageButton
android:id="@+id/run_speech_recognizer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#00000000"
android:gravity="center"
android:onClick="onRecognizeClick"
android:src="@drawable/speech_recognizer_recognizing" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/recognize"
android:textColor="#cccccc" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:onClick="goToWebSite"
android:clickable="true"
android:text="@string/app_explanation"
android:textColor="#ffffff" />
</LinearLayout>

</ScrollView>
27 changes: 19 additions & 8 deletions res/layout/fragment_datum_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@

<ImageView
android:id="@+id/image_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="This is the main image representing this example."
android:gravity="center"
android:src="@drawable/ic_launcher"
android:src="@drawable/speech_bubbles"
android:visibility="gone" />

<VideoView
android:id="@+id/video_view"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:background="@drawable/ic_launcher"
android:background="@drawable/speech_bubbles"
android:gravity="center" />

<ScrollView
android:id="@+id/video_controls_padding"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/image_view"
android:layout_alignLeft="@+id/image_view"
android:layout_alignRight="@+id/image_view"
Expand Down Expand Up @@ -94,6 +94,17 @@
android:scrollHorizontally="false"
android:text=""
android:textColor="#CCCCCC" />

<EditText
android:id="@+id/tags"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="@string/tag_hint"
android:inputType="textMultiLine"
android:scrollHorizontally="false"
android:text=""
android:textColor="#FFFFFF" />
</LinearLayout>
</ScrollView>

Expand Down
90 changes: 90 additions & 0 deletions res/layout/fragment_datum_detail_simple.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ff000000" >

<ImageView
android:id="@+id/image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="This is the main image representing this example."
android:gravity="center"
android:src="@drawable/speech_bubbles"
android:visibility="gone" />

<VideoView
android:id="@+id/video_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:background="@drawable/speech_bubbles"
android:gravity="center" />

<ScrollView
android:id="@+id/video_controls_padding"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/image_view"
android:layout_alignLeft="@+id/image_view"
android:layout_alignRight="@+id/image_view"
android:layout_alignTop="@+id/image_view"
android:gravity="center" >

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="#55000000"
android:gravity="center"
android:orientation="vertical" >

<EditText
android:id="@+id/orthography"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="@string/orthography"
android:inputType="textMultiLine"
android:scrollHorizontally="false"
android:text=""
android:textColor="#FFFFFF"
android:textSize="25sp" />

<EditText
android:id="@+id/translation"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="@string/translation_hint"
android:inputType="textMultiLine"
android:scrollHorizontally="false"
android:text=""
android:textColor="#FFFFFF"
android:textSize="25sp" />

<EditText
android:id="@+id/context"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="@string/context"
android:inputType="textMultiLine"
android:scrollHorizontally="false"
android:text=""
android:textColor="#CCCCCC" />

<EditText
android:id="@+id/tags"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:hint="@string/tag_hint"
android:inputType="textMultiLine"
android:scrollHorizontally="false"
android:text=""
android:textColor="#FFFFFF" />
</LinearLayout>
</ScrollView>

</RelativeLayout>
Loading