Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, if i remember correctly SurfaceTexture is used in this method, you can comment it like this, comment the import, and it works with API 8 (but will have problems with API >= honeycomb, of course).

    public void setPreview() throws IOException {
        //if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
        //    mCamera.setPreviewTexture( new SurfaceTexture(10) );
        //else
            mCamera.setPreviewDisplay(null);
    }