private void showError(ErrorType errorType, Integer logPriority, String msg) { Log.println(logPriority, TAG, msg); boolean failedRepeatedly = false; if (errorType.isConnectionType()) { ConnectionInfo connectionInfo = updateConnectionInfo(false, errorType.isNotifiable(), msg); failedRepeatedly = connectionInfo.getState() == ConnectionInfo.State.FAILED_REPEATEDLY; } Intent intent = new Intent(Broadcasts.ERROR_MESSAGE); intent.putExtra(Broadcasts.Extras.ERROR_REASON, msg); intent.putExtra( Broadcasts.Extras.REPEATED_MINOR_ERROR, failedRepeatedly && errorType.isMinorType()); context.sendBroadcast(intent); }