title: display in textView basic operation result android
body: <p>i have to show some operations in Android,,,</p>
  
  <p>but Im having some noob problem, </p>
  
  <pre><code>public void calculateButtonPressed() {
          // TODO Auto-generated method stub
          Button button = (Button) findViewById(R.id.result);
  
          button.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View arg0) {
  
                  Log.d("myTag",  "result biatch");
  
                  String text=et.getText().toString();
  
                  //toast msg
                  //Toast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);
                  // msg.show();
  
                  //set Text
                  tv.setText(text);
  
                  //result_tv.setText("copao");
  
                  int total = 1+2+3;
  
                  result_tv.setText(total);
  
              }
  
          });
  
      }
  </code></pre>
  
  <p>so the app crashes , as im not using the variable correctly??</p>
  
  <p>If I print the <code>result_tv.setText("copao");</code> it works fine</p>
  
  <p>but on my basic operation the app crashes,</p>
  
  <pre><code>int total = 1+2+3;
  
  result_tv.setText(total);
  </code></pre>
  
  <p>so what Im I missing?</p>
  
  <p>thanks!</p>