title: Capture an image from the camera preview
body: <p>i was wondering if it is possible to save images from the camera preview, maybe 1 image every 2-3 seconds. any examples you can give me?</p>
  
  <p>i have found this as a possible solution, and i know how to save the image from byte array, but how do i proceed with saving every Nth frame? i was thinking of storing the system uptime and checking it in every frame but it seems kinda lame. Is there a better way? Is there a way i can get info such as preview frame rate?</p>
  
  <p><a href="https://stackoverflow.com/questions/1032258/android-how-to-save-a-preview-frame-as-jpeg-image">Android: How to save a preview frame as jpeg image?</a></p>
  
  <p>tnx.</p>