private void setErrorText() {
   int stringRes;
   switch (response.getErrorReason()) {
     case Response.ERROR_REASON_PIN:
       stringRes = R.string.error_response_pin;
       break;
     case Response.ERROR_REASON_COMMAND:
       stringRes = R.string.error_response_command;
       break;
     case Response.ERROR_REASON_PARSING:
       stringRes = R.string.error_response_parsing;
       break;
     case Response.ERROR_REASON_UNKNOWN:
     default:
       stringRes = R.string.error_response_unknown_error;
   }
   responseView.setErrorText(stringRes);
 }
 public void setTitle() {
   responseView.setTitle(R.string.error);
 }
 public void initialize(ErrorResponseView responseView, Bundle savedInstanceState) {
   super.initialize(responseView, savedInstanceState);
   this.responseView = responseView;
   responseView.setTitle(R.string.error);
   setErrorText();
 }