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. 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:

More info can be found here:

You’ll need to cast your data types to the JNI ones: