public boolean stopRendering(){
  if (mTimer != null) {
    mTimer.shutdownNow();
    mTimer=null;
    return true;
  }
  return false;
}

public boolean stopRendering ( ) { if ( mTimer != null ) { mTimer . shutdownNow ( ) ; mTimer = null ; return true ; } return false ; }
stop rendering the scene .
