public synchronized boolean cancel(){
  LogUtil.d(TAG,"cancel recording");
  if (recorder == null) {
    LogUtil.e(TAG,"recorder is null ");
    return false;
  }
  try {
    stopRecord();
  }
 catch (  IllegalStateException e) {
    e.printStackTrace();
    LogUtil.e(TAG,"illegal state happened when cancel");
  }
  File file=new File(mPath);
  return file.exists() && file.delete();
}

public synchronized boolean cancel ( ) { LogUtil . d ( TAG , "cancel recording" ) ; if ( recorder == null ) { LogUtil . e ( TAG , "recorder is null " ) ; return false ; } try { stopRecord ( ) ; } catch ( IllegalStateException e ) { e . printStackTrace ( ) ; LogUtil . e ( TAG , "illegal state happened when cancel" ) ; } File file = new File ( mPath ) ; return file . exists ( ) && file . delete ( ) ; }
cancel , not save the file
