Advice how to integrate some Java in OF

Hi All,

I am trying first Android project with OF. I would like to get some piece of advice how to integrate some Java in OF android project. OFActivity.java is the only code in Java that I see available. Is it then linking to this class? But how to communicate between OFActivity and testApp.

The part of Java is getting the wifis list available from the device. I had this part java code in processing working and now I would like to make it in OF.

thanks in advance.

You’ll have to look up how JNI works. I have a short description on how I did it for my projects:
http://www.multigesture.net/2011/11/19/nodebeat-openframeworks-and-android/

More info can be found here:
http://en.wikipedia.org/wiki/Java-Native-Interface

You’ll need to cast your data types to the JNI ones:
http://en.wikipedia.org/wiki/Java-Native-Interface#Mapping-types