Mercurial
view gara/android/ndk/app/src/main/cpp/native-lib.cpp @ 64:a30944e5719e
Added vibe coded markdown to html script since it is useful for me. Updated Dowa so that it can be compiled without dirnet for windows.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 23 Dec 2025 15:18:46 -0800 |
| parents | 829623189a57 |
| children |
line wrap: on
line source
#include <jni.h> #include <string> extern "C" JNIEXPORT jstring JNICALL Java_com_example_android_bazel_MainActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { std::string hello = "Hello from C++"; return env->NewStringUTF(hello.c_str()); }