public void capturePicture() {
        if (checkCameraSupport() == false) {
            //  showAlert("Error", "Camera is not supported!", null);
            return;
        }

        if (checkPngEncodingSupport() == false) {
            //  showAlert("Error", "Png encoding is not supported!", null);
            return;
        }
    }