Deprecated method

As per latest documentation on android.com, the SurfaceHolder.setType() method is deprecated.