title: How to solve SurfaceHolder.setType deprecated ? Is there any other method?
body: <p>What is used in place of <code>surfaceholder.settype</code> ?</p>
  
  <pre><code>PreviewHolder = CameraPreview.getHolder();
         PreviewHolder.addCallback(this);
         if(Build.VERSION.SDK_INT &lt; Build.VERSION_CODES.HONEYCOMB)
  
          PreviewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
  </code></pre>