Ask Your Question

Revision history [back]

    public void swapCamera() {
            int index = CAMERA_ID_FRONT;
            if (getCameraIndex() == CAMERA_ID_FRONT)
                index = CAMERA_ID_BACK;
            this.disableView();
            this.setCameraIndex(index);
            this.enableView();
   }