summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/cpp/native-lib.cpp
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-15 05:39:21 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-15 05:39:21 +0000
commit418f6ae8c8ccb968c2674548139dab36e2ab1905 (patch)
tree7371f4b31a7d75b18626b51231d3ff76ebeb92a9 /android-app/app/src/main/cpp/native-lib.cpp
parent18c2f1c038f62fda1c1cea19c12dfdd4ce411602 (diff)
feat: add voice log UI with FAB, fragment container, and logbook domain models
- Add VoiceLogFragment, VoiceLogViewModel, VoiceLogState, LogEntry, InMemoryLogbookRepository - Wire voice log FAB in MainActivity to show/hide fragment container - Add RECORD_AUDIO permission to manifest - Add native CMakeLists.txt and native-lib.cpp stubs - Fix missing BufferOverflow import in LocationService Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'android-app/app/src/main/cpp/native-lib.cpp')
-rw-r--r--android-app/app/src/main/cpp/native-lib.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/android-app/app/src/main/cpp/native-lib.cpp b/android-app/app/src/main/cpp/native-lib.cpp
new file mode 100644
index 0000000..f606a41
--- /dev/null
+++ b/android-app/app/src/main/cpp/native-lib.cpp
@@ -0,0 +1,14 @@
+#include <jni.h>
+#include <string>
+#include <android/log.h>
+
+#define TAG "WindVisualizationNative"
+
+extern "C" JNIEXPORT jstring JNICALL
+Java_org_terst_nav_MainActivity_stringFromJNI(
+ JNIEnv* env,
+ jobject /* this */) {
+ std::string hello = "Hello from C++";
+ __android_log_print(ANDROID_LOG_INFO, TAG, "stringFromJNI called!");
+ return env->NewStringUTF(hello.c_str());
+}