Hii,
How would i compare the image in render frame method of videoplayback cpp file to set the current target, i have all the images name and totoal number of image targets in my java file from server(script/web service). Now can i pass whole image name array as well the total number of images from videoplayback.java to videoplayback of cpp file.
Suppose i only know at run time after downloading the dat and xml and hitting a server script, that i have 100 image targets and those name are image1, image2.... iamge100,
Now how would i set the Current target in render frame and how should i compare the image target name.
Hi Thanks for your reply. but NUM_TARGETS is given as static const int, which can not be modified, means i i passing a value from java file to videoplayback.cpp but becuase of static const int it can not be modified, also i tried to make it simple varible then try to assign in it, still it was not workig.
here is my code to assign value to NUM_TARGETS from videoplayback.java to videoplayback.cpp file
-------------------------------------------------------------------------------------------
Java file:-
public native void sum(int a);
inside oncreate-
sum(100);
--------------------------------------------------------------------------------------------
CPP file:-
JNIEXPORT void JNICALL