title: TextView won't clear for some Reason, Android
body: <p>I hope this isn't a stupid question. I'm having some trouble clearing a TextView. I've looked around and everyone keeps saying use: textView.setText(""); in onCreate but doesn't seem to work for some reason. Basically, my app just accepts a number from an editText then runs the Fibonacci sequence (when a button is clicked) and displays the result in a textView. Well, the sequence displays fine but I want the textview to clear every time I click the button - so far it just keeps adding more text to what's already there.</p>
  
  <p>Am I placing textView.setText(""); in the wrong location? Or am I just missing some other concept? (I also tried placing it from my OnClick - that didn't work either). </p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  // primary widgets
  private EditText editText;
  private TextView textView;
  private Button button1;
  
  static ArrayList&lt;Integer&gt; fibList = new ArrayList&lt;Integer&gt;();
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      editText = (EditText) findViewById(R.id.editText1);
      textView = (TextView) findViewById(R.id.textView2);
      button1 = (Button) findViewById(R.id.button1);
  
      //Attempt to clear TextView
      textView.setText("");
  
      button1.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
  
              String input = editText.getText().toString();
              int number = Integer.parseInt(input);
              int tmp = 0;
  
              // confirm input
              if (number &lt; 20) {
                  Toast.makeText(getApplicationContext(),
                          "You entered: " + number, Toast.LENGTH_LONG).show();
                  for (int i = 0; i &lt;= number; i++) {
                      fibList.add(fib(i));
  
                      // sum even numbers
                      if (fib(i) % 2 == 0) {
                          tmp += fib(i);
  
                      }
  
                  }
              } else {
                  Toast.makeText(getApplicationContext(),
                          "Number is too Large: " + number, Toast.LENGTH_LONG)
                          .show();
              }
              String array = fibList.toString();
              textView.setText(array);
  
          }
  
      });
  
  }
  
  // run fibonacci sequence
  public static int fib(int n) {
      if (n &lt; 2) {
          return n;
      } else {
          return fib(n - 1) + fib(n - 2);
      }
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // Inflate the menu; this adds items to the action bar if it is present.
      getMenuInflater().inflate(R.menu.main, menu);
      return true;
  }
  </code></pre>
  
  <p>}</p>