blob: fa595fbae4be8c7a0d79161591c79eff826befcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <jni.h>
#include <string>
extern "C"
JNIEXPORT jstring
JNICALL
Java_com_twine_tango_MainActivity_stringFromJNI(
JNIEnv *env,
jobject /* this */) {
std::string hello = "Hello from C++";
return env->NewStringUTF(hello.c_str());
}
|