@Override public void onPause(){
  if (Camera != null)   Camera.shutdown();
  Camera=null;
  if (SnapHandler != null)   SnapHandler.shutdown();
  SnapHandler=null;
  super.onPause();
}

@ Override public void onPause ( ) { if ( Camera != null ) Camera . shutdown ( ) ; Camera = null ; if ( SnapHandler != null ) SnapHandler . shutdown ( ) ; SnapHandler = null ; super . onPause ( ) ; }
callback handler when fragment has been removed from view .
