Code example for ScheduledExecutorService

Methods: shutdownNow

0
        } 
    } 
 
    @Override 
    public void surfaceDestroyed(SurfaceHolder holder) {
    	faceDetectScheduler.shutdownNow();
        mCamera.stopPreview();
    	mCamera.release();
    } 
     
    @Override 
    public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
    } 
} 
Experience pair programming with AI  Get Codota for Java