title: Should I reopen the camera before changing the Surface dimension
body: <p>I am working on a custom camera app and using <code>FrameLyout</code> for displaying preview. In one part of the app I have to change the <code>Preview</code> size and <code>FrameLayout</code> size dynamically. This is the steps I am follwing before changing <code>Framelayout</code> size </p>
  
  <ul>
  <li><p>Stop the <code>preview</code> </p></li>
  <li><p>Change <code>preview</code> and <code>framelyout</code> size</p></li>
  <li>Start the <code>preview</code> again.</li>
  </ul>
  
  <p>I did this successfully but preview is darker than earlier preview, Please let me know what could be the reason.</p>
  
  <p>Should I reopen the camera before changing the <code>FrameLayout</code> dimension?</p>