private Boolean handleExecutionResponse(HttpURLConnection connection) throws IOException {
  int responseCode=connection.getResponseCode();
  if (isSuccessful(responseCode)) {
    String responseContent=getResponseContentAsString(connection);
    String id=responseContent != null ? responseContent : "unknown";
    Log.i(TAG,"Minidump " + mFileToUpload.getName() + " uploaded successfully, id: "+ id);
    cleanupMinidumpFile();
    try {
      appendUploadedEntryToLog(id);
    }
 catch (    IOException ioe) {
      Log.e(TAG,"Fail to write uploaded entry to log file");
    }
    return true;
  }
 else {
    String msg=String.format(Locale.US,"Failed to upload %s with code: %d (%s).",mFileToUpload.getName(),responseCode,connection.getResponseMessage());
    Log.i(TAG,msg);
    return false;
  }
}

private Boolean handleExecutionResponse ( HttpURLConnection connection ) throws IOException { int responseCode = connection . getResponseCode ( ) ; if ( isSuccessful ( responseCode ) ) { String responseContent = getResponseContentAsString ( connection ) ; String id = responseContent != null ? responseContent : "unknown" ; Log . i ( TAG , "Minidump " + mFileToUpload . getName ( ) + " uploaded successfully, id: " + id ) ; cleanupMinidumpFile ( ) ; try { appendUploadedEntryToLog ( id ) ; } catch ( IOException ioe ) { Log . e ( TAG , "Fail to write uploaded entry to log file" ) ; } return true ; } else { String msg = String . format ( Locale . US , "Failed to upload %s with code: %d (%s)." , mFileToUpload . getName ( ) , responseCode , connection . getResponseMessage ( ) ) ; Log . i ( TAG , msg ) ; return false ; } }
reads the http response and cleans up successful uploads .
