From a35b286ce040919a71d27e5bf696886237c6c470 Mon Sep 17 00:00:00 2001 From: bringert Date: Fri, 4 Oct 2013 16:26:46 +0000 Subject: Add new Android voice translator sample app This adds a simple voice translator Android app that uses the JNI bindings to the PGF C runtime. Caveats: - Since the C runtime doesn't compile for Android right now, I've bundled an old copy, along with its Java bindings. That should be removed once the C runtime compiels for Android again. - Adding an automated build would be nice. - Replacing the grammar requires editing a Java file, that should really be more dynamic. --- src/ui/android/res/layout/activity_main.xml | 85 ++++++++++++++++++++++ .../android/res/layout/first_person_utterance.xml | 11 +++ src/ui/android/res/layout/languages_item.xml | 8 ++ .../android/res/layout/second_person_utterance.xml | 12 +++ 4 files changed, 116 insertions(+) create mode 100644 src/ui/android/res/layout/activity_main.xml create mode 100644 src/ui/android/res/layout/first_person_utterance.xml create mode 100644 src/ui/android/res/layout/languages_item.xml create mode 100644 src/ui/android/res/layout/second_person_utterance.xml (limited to 'src/ui/android/res/layout') diff --git a/src/ui/android/res/layout/activity_main.xml b/src/ui/android/res/layout/activity_main.xml new file mode 100644 index 000000000..b0ccab0ea --- /dev/null +++ b/src/ui/android/res/layout/activity_main.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/ui/android/res/layout/first_person_utterance.xml b/src/ui/android/res/layout/first_person_utterance.xml new file mode 100644 index 000000000..55779ae8f --- /dev/null +++ b/src/ui/android/res/layout/first_person_utterance.xml @@ -0,0 +1,11 @@ + diff --git a/src/ui/android/res/layout/languages_item.xml b/src/ui/android/res/layout/languages_item.xml new file mode 100644 index 000000000..d5f47ab27 --- /dev/null +++ b/src/ui/android/res/layout/languages_item.xml @@ -0,0 +1,8 @@ + + diff --git a/src/ui/android/res/layout/second_person_utterance.xml b/src/ui/android/res/layout/second_person_utterance.xml new file mode 100644 index 000000000..416d85328 --- /dev/null +++ b/src/ui/android/res/layout/second_person_utterance.xml @@ -0,0 +1,12 @@ + + -- cgit v1.2.3