package jp.android_group.artoolkit.hardware;
+import java.io.IOException;
+
import jp.android_group.artoolkit.NyARToolkitAndroidActivity;
import jp.android_group.artoolkit.R;
import android.content.Context;
stopPreview();
// this blanks the screen if the surface changed, no-op otherwise
- mCameraDevice.setPreviewDisplay(mSurfaceHolder);
+ try {
+ mCameraDevice.setPreviewDisplay(mSurfaceHolder);
+ } catch (IOException e) {
+ Log.e("Dev1", "IOError", e);
+ }
// request the preview size, the hardware may not honor it,