From 4b4e1154f0f041bcfea4fa6b922c0c5c2274983c Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 5 Nov 2017 14:53:46 +0200 Subject: Added new Android Studio project. Implemented PMR script for android studio. Added C++ support. Implemented android PMR unit testing. --- .../Tango.BL/src/main/cpp/native-lib.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Software/Android-Studio/Tango.BL/src/main/cpp/native-lib.cpp (limited to 'Software/Android-Studio/Tango.BL/src/main/cpp/native-lib.cpp') 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 +#include +#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()); +} -- cgit v1.3.1