As per the discussion in the below mentioned link:-
Kim suggested me to capture the frames in the native code and then pass them to the java code for further processing.Well I have decided to do that way only.Thanks Kim :)
For generating frames we need QCAR::State object given by Renderer class.I read in the documentation of Renderer class that all its methods should be called from a render thread.My requirement is that on the click of some button in android code my native method say captureFrame should be called which will capture the frame and will return it to the java code.
I need to capture the frame on the click of button and not while rendering of GLSurfaceView.
Is it possible??Please let me know......
And please let me know if I have misunderstood the documantation.