title: remove the selected item from the spinner
body: <p>I am newbie i want to remove the selected item from the <code>spinner</code> and also add the new item to the <code>spinner</code>.How can i do that.What i am trying is</p>
  
  <pre><code>adapter = ArrayAdapter.createFromResource(this,R.array.slot , android.R.layout.simple_spinner_item);
              adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
              slotTime.setAdapter(adapter);
      slotTime.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
              @Override
              public void onItemSelected(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
                  selectedTime = adapterView.getSelectedItem().toString();
                      adapter.remove((String) slotTime.getSelectedItem());
                      adapter.notifyDataSetChanged();
  
              }
  </code></pre>
  
  <p>I got the error like this....</p>
  
  <pre><code>     java.lang.UnsupportedOperationException
  </code></pre>
  
  <p>Anyone kindly help me to overcome this problem</p>