skyline/app/src/main/cpp/lightswitch.cpp

13 lines
290 B
C++
Raw Normal View History

#include <jni.h>
#include <string>
2019-06-29 16:21:59 +02:00
#include <syslog.h>
extern "C" JNIEXPORT jstring JNICALL
Java_gq_cyuubi_lightswitch_MainActivity_stringFromJNI(
JNIEnv *env,
jobject /* this */) {
2019-06-29 16:21:59 +02:00
std::string finished = "finished!";
return env->NewStringUTF(finished.c_str());
}