I have source code from a demo app that is involves some native coding. I'd like to integrate some part of that code into my own app.
This is how the code is structured:
app/
java/
com.demoUser/
caffe_android_demo/
MainActivity
caffe_android_lib/
CaffeMobile
jniLibs/
libcaffe_jni.so
Apparantly there are some parts in the native code which are specific towards the the app's package name, like in caffe_jni.cpp
:
JNIEXPORT void JNICALL
Java_com_demoUser_caffe_1android_1lib_CaffeMobile_extractFeatures(
someArgs...) {
...
}
How can I refactor those names such that it can be called from my app com.myUsername
?
Or is there another way to include code from another app in android studio?