blob: f606a41bd39dd0acdb825df3dca7860bde26918e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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());
}
|