title: How do I take a picture of what fits inside a square in android?
body: <p>I have to make my app capable of taking pictures of <em>only</em> whatever it fits a squared frame that is superimposed on the preview.</p>
  
  <p>The idea is: the client wants the app to send pictures of 600x600px tops. To avoid cropping important parts of the picture, he decided to put this superimposed squared frame (similar to the one in QR-reading apps) and to crop out everything out of said frame.</p>
  
  <p>To do this I need two things.
  1) How do I set the frame dimensions for multiple screens while getting the output within the required dimensions? 
  2) Once the frame is up and running... how do I crop out the rest of the picture?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Update</p>
  
  <p>What I want to do is something similar to what is explained here <a href="http://www.londatiga.net/featured-articles/how-to-select-and-crop-image-on-android/" rel="nofollow">http://www.londatiga.net/featured-articles/how-to-select-and-crop-image-on-android/</a>
  Thing is: </p>
  
  <ul>
  <li>This how-to <em>checks if there's an image-cropper app installed</em>, it
  doesn't do the cropping by itself (or so I understand, maybe I'm
  wrong?).  </li>
  <li>The frame seems to be 200x200... px? dp? Would that frame take up the
  same portion of screen on xhdpi screens that on ldpi screens?</li>
  <li>What's the size of the resulting image? Can I decide it somehow?</li>
  </ul>