@Override public void onDestroy() { if (DEBUG) Log.v(TAG, "onDestroy:"); if (mHandler != null) { mHandler.release(); mHandler = null; } if (mUSBMonitor != null) { mUSBMonitor.destroy(); mUSBMonitor = null; } mUVCCameraViewL = null; mUVCCameraViewR = null; mCameraButton = null; mCaptureButton = null; super.onDestroy(); }