Newer
Older
music / app / src / main / cpp / native-lib.cpp
@lukas lukas on 28 Jul 2022 261 bytes initial commit
#include <jni.h>
#include <string>

extern "C" JNIEXPORT jstring JNICALL
Java_com_lukas_music_MainActivity_stringFromJNI(
        JNIEnv* env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}