aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Android_Studio/Tango.BL/src/main/cpp/native-lib.cpp
blob: c7317d615a9925183fe786788ac9634e5b19d484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <jni.h>
#include <string>
#include "OtherClass.h"

extern "C"
JNIEXPORT jstring

JNICALL
Java_com_twine_tango_bl_Example_getString(
        JNIEnv *env,
        jobject /* this */)
{

    OtherClass c;

    std::string hello = "Hello from C++" + c.getString(" Some String");
    return env->NewStringUTF(hello.c_str());
}