title: adding item from edit text to spinner
body: <p>Im tring to add the text thats in an edittext to the spinner when the submit buttin is clicked...</p>
  
  <p>I already have 3 entries in the spinner which are showing up, but the string I make from the edit text is not entering into it. </p>
  
  <pre><code>    public void addItemsOnSpinner2() {
      FoodSpinner = (Spinner) findViewById(R.id.spinner);
      final List&lt;String&gt; list = new ArrayList&lt;String&gt;();
      list.add("Bread");
      list.add("Sugar");
      list.add("Steak");
      ArrayAdapter&lt;String&gt; dataAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_item,list);
      dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      FoodSpinner.setAdapter(dataAdapter);
  
      button6.setOnClickListener(new View.OnClickListener() {
  
  
  
          @Override
          public void onClick(View v) {
  
              String ET = editText.getText().toString();
  
              if (!ET.equals("")) {
                  list.add("" + ET + "");
              }
  
          }
  
  
  
  
  
      }
  </code></pre>