Integrate in Android Studio #3245
Answered
by
lpugin
NorayrMovsisyan
asked this question in
Q&A
-
Hello everyone. Can you explain me how can I integrate verovio into android studio. thank you a lot. |
Beta Was this translation helpful? Give feedback.
Answered by
lpugin
Mar 20, 2023
Replies: 1 comment
-
You can try this:
A minimal example would look like: #include <jni.h>
#include <string>
#include "toolkit.h"
extern "C" JNIEXPORT jstring JNICALL
Java_com_example_myapplication_MainActivity_stringFromJNI(JNIEnv* env, jobject /* this */) {
vrv::Toolkit tk(false);
std::string hello = "Hello from Verovio " + tk.GetVersion();
return env->NewStringUTF(hello.c_str());
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lpugin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try this:
./app/src/main/cpp
directoryCMakeLists.txt
generated by Android Studio:A minimal example would look like: