Android Qt 5.1 and native code
-
Hello,
I was wondering if someone could give me informations about how is possible that to mix Qt and native java code (like google admob)...
I think there is a chance since in a new project there are some .java file -
You need to use JNI.
Qt has a "bootstrap" code (QtApplication.java / QtActivity.java). It uses JNI to load the native code (Qt).
http://developer.android.com/training/articles/perf-jni.html
http://stackoverflow.com/questions/5198105/calling-a-java-method-from-c-in-android -
Ah ok, I was thinking on a more simple Qt facility...
-
Jni is a bad thing... :D
-
Anyway I need the inverse of JNI does...I need to use native java (admob) in Qt environment...