I've got a class that I'd like to pass between C++ and an Android Project.
The Class:
public class SomeData {
public SomeData ( byte[] data )
{
m_data = data;
}
public byte[] getData ()
{
return m_data;
}
public byte[] m_data;
... some other fields ...
}
I would like to pass it to a C++ function (using JNI interface of course) and then be able to retrieve it.
i.e - something like
public static native SomeData getData();
Where the C++ should be able to create that class and pass it back.
How can this be done?
Many Thanks