private void cleanupMinidumpFile(){
  if (!CrashFileManager.tryMarkAsUploaded(mFileToUpload)) {
    Log.w(TAG,"Unable to mark " + mFileToUpload + " as uploaded.");
    if (!mFileToUpload.delete()) {
      Log.w(TAG,"Cannot delete " + mFileToUpload);
    }
  }
}

private void cleanupMinidumpFile ( ) { if ( ! CrashFileManager . tryMarkAsUploaded ( mFileToUpload ) ) { Log . w ( TAG , "Unable to mark " + mFileToUpload + " as uploaded." ) ; if ( ! mFileToUpload . delete ( ) ) { Log . w ( TAG , "Cannot delete " + mFileToUpload ) ; } } }
mark file we just uploaded for cleanup later . we do not immediately delete the file for testing reasons , but if marking the file fails , we do delete it right away .
