aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Android_Studio/Tango.BL/src/main/cpp/native-lib.cpp
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2017-11-16 13:38:56 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2017-11-16 13:38:56 +0200
commit914f4db513477d9aff726546bac47545195a3e37 (patch)
treed2ff190fd84b1dfaa03eec76563c431592ece7ff /Software/Android_Studio/Tango.BL/src/main/cpp/native-lib.cpp
parent65d01ff549d80fbe13ff5e966df216c9f7c03653 (diff)
downloadTango-914f4db513477d9aff726546bac47545195a3e37.tar.gz
Tango-914f4db513477d9aff726546bac47545195a3e37.zip
Rename "Visual Studio" to "Visual_Studio"
Rename "External Repositories" to "External_Repositories".
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.cpp18
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());
+}