private boolean isUploadSizeAndFrequencyAllowed(){
  if (mFileToUpload.length() > LOG_SIZE_LIMIT_BYTES)   return false;
  if (mSharedPreferences.getInt(PREF_LAST_UPLOAD_DAY,0) != getCurrentDay())   return true;
  return mSharedPreferences.getInt(PREF_UPLOAD_COUNT,0) < LOG_UPLOAD_LIMIT_PER_DAY;
}

private boolean isUploadSizeAndFrequencyAllowed ( ) { if ( mFileToUpload . length ( ) > LOG_SIZE_LIMIT_BYTES ) return false ; if ( mSharedPreferences . getInt ( PREF_LAST_UPLOAD_DAY , 0 ) != getCurrentDay ( ) ) return true ; return mSharedPreferences . getInt ( PREF_UPLOAD_COUNT , 0 ) < LOG_UPLOAD_LIMIT_PER_DAY ; }
checks whether crash upload satisfies the size and frequency constraints .
