Log in or register to post comments

How can I call java methods from C++?

September 2, 2012 - 10:12pm #1

 

It is possible to call c++ function from java.


However, if the opposite of what should I do?

How can I call java methods from C++?

September 4, 2012 - 1:52am #3

This is also a good article about native functions

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jniexamp.html

helped me a lot ^__^

How can I call java methods from C++?

September 3, 2012 - 7:21am #2

Hey,

You should read more about JNI (Java Native Interface) which allows you to communicate between your c++ code and your Java code ;)
http://developer.android.com/guide/practices/jni.html (on this link, you got a direct link to the JNI official doc).
Otherwise, you can just try to understand how ImageTargets sample works so that you don't need to read a large amount of docs ;)

Gabriel

Log in or register to post comments