Ok i found the solution, i post it in the case someone will read.
In the native function the array is initialize only if marker is currently track.
So in the java code i use an if to dected when the array is null, in that case i simply do nothing, waiting for another call of that function, when finally is not null i can execute the portion of code who gave me some problem
the code here:
In the native function the array is initialize only if marker is currently track.
So in the java code i use an if to dected when the array is null, in that case i simply do nothing, waiting for another call of that function, when finally is not null i can execute the portion of code who gave me some problem
the code here:
Code Select
Matrix m = new Matrix();
if(modelViewMat!=null)
{
m.setDump(modelViewMat);
cam.setBack(m);
}