diff options
Diffstat (limited to 'Software/Android_Studio/Tango.BL/src/main/cpp/native-lib.cpp')
| -rw-r--r-- | Software/Android_Studio/Tango.BL/src/main/cpp/native-lib.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Software/Android_Studio/Tango.BL/src/main/cpp/native-lib.cpp b/Software/Android_Studio/Tango.BL/src/main/cpp/native-lib.cpp new file mode 100644 index 000000000..c7317d615 --- /dev/null +++ b/Software/Android_Studio/Tango.BL/src/main/cpp/native-lib.cpp @@ -0,0 +1,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()); +} |
