code: public static void setText(Activity context, int field, String text) {
          View view = context.findViewById(field);
          if (view instanceof TextView) {
              ((TextView) view).setText(text);
          } else {
              Log.e("Caffeine", "ViewUtils.setText() given a field that is not a TextView");
          }
      }
docs: Method used to set text for a TextView.
  
  @param context The current Context or Activity that this method is called from.
  @param field   R.id.xxxx value for the text field.
  @param text    Text to place in the text field.