2

What is used in place of surfaceholder.settype ?

PreviewHolder = CameraPreview.getHolder();
       PreviewHolder.addCallback(this);
       if(Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB)

        PreviewHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
LaurentY
  • 7,495
  • 3
  • 37
  • 55
Ashik.Aust
  • 43
  • 2
  • 5

1 Answers1

5

For 3.0 (honeycomb) and higher, you do not need to call this method at all. As the docs state, it is ignored and set automatically. SurfaceHolder.setType is deprecated… But required?

Community
  • 1
  • 1
michal.z
  • 2,025
  • 1
  • 15
  • 10