Code example for Surface

Methods: release

0
        if (m_camera != null) {
            m_camera.release();
        } 
        m_DummyTexture.release();
        m_DummySurface.release();
        m_DisplaySurface.release();
    } 
 
    protected void finalize() 
    { 
        destroy(); 
    } 
 
    /** 
     * Implementation of Camera.PreviewCallback method 
     */ 
    public void onPreviewFrame(byte[] data, Camera camera) {
        Log.d(TAG, "Calling GraphUpdate!");
        GraphUpdate(data, m_width, m_height, m_format);
    }