Android How to capture two consecutive frames from camera
<p>I'm trying to program Optical flow on android device. 
My problem is to get two consecutive frames from camera.</p>

<p>That's the code to get ONE frame.</p>

<pre><code>mCamera.setPreviewCallback(new PreviewCallback() {
        public void onPreviewFrame(byte[] data, Camera camera) {
            synchronized (SampleViewBase.this) {
                mFrame2 = data;
                SampleViewBase.this.notify();
            }
        }
    });     
</code></pre>
