code: public void outputText(final TextView view, final String value) {
          runOnUiThread(new Runnable() {
              @Override
              public void run() {
                  view.append(value + "\n");
                  System.out.println(view);
              }
          });
      }
docs: Prints the specified text value to the view and to LogCat.
  
  @param view
  The view to print to.
  @param value
  The value to print.