title: how multiple selected spinner item data display on one editbox when I am click on button
body: <p>when I am selected multiple spinner item that all data item display on one separated edit box. this is one part of code and xml.</p>
  
  <pre><code> public void addItemsOnSpinner(){
          sp1=(Spinner) findViewById(R.id.spinner1);
          ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource( this, R.array.facility_array, android.R.layout.simple_spinner_item);   
          adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);   
          sp1.setAdapter(adapter);
  
      }
      public void onItemSelected(AdapterView&lt;?&gt; spinner, View arg1, int arg2,
                      long arg3) {
  
                  // TODO Auto-generated method stub
                  switch(view.getId()){
                  //Spinner spinner1,spinner2,spinner3;
                  case R.id.spinner1:
                      Toast.makeText(myetms.this,"spinner1",Toast.LENGTH_LONG).show();
                  //break
                  case R.id.spinner2:
                      Toast.makeText(myetms.this,"spinner2",Toast.LENGTH_LONG).show();
                  //break;
                  case R.id.spinner3:
                      Toast.makeText(myetms.this,"spinner3",Toast.LENGTH_LONG).show();
                  break;
                  }
              //sendSMS("9819861968","+location[index]");
                  //sc.setVisibility(view.VISIBLE);       }
  
              public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
                  // TODO Auto-generated method stub
  
              }
          };
          public void onItemSelected(AdapterView&lt;?&gt; sp1,View view,int pos,long id){
              //sc.setText((CharSequence) sp1.getSelectedItem());
      sc.setVisibility(view.VISIBLE);         
  }
  </code></pre>
  
  <p><strong>Here is the xml file</strong></p>
  
  <pre><code>   &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical" &gt;
          &lt;ImageView
              android:id="@+id/imageView1"
              android:layout_width="match_parent"
              android:layout_height="132dp"
              android:src="@drawable/myshedule" /&gt;
  
          &lt;TableLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content" &gt;
              &lt;TableRow
                  android:id="@+id/tableRow1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
                  &lt;TextView
                      android:id="@+id/TextView04"
                      android:layout_width="25dp"
                      android:layout_height="65dp"
                      android:layout_weight="1"
                      android:background="#dcdcdc"
                      android:gravity="center"
                      android:padding="20dip"
                      android:text="From"
                      android:textColor="#000000" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editText"
                      android:layout_width="55dp"
                      android:layout_weight="1"
                      android:background="#d3d3d3"
                      android:gravity="center"
                      android:padding="20dip"
                      android:text="Select Date"
                      android:textColor="#000000" /&gt;
  
                  &lt;ImageButton
                      android:id="@+id/imageButton1"
                      android:layout_height="65dp"
                      android:contentDescription="@string/selectdate"
                      android:gravity="center"
                      android:padding="20dip"
                      android:src="@drawable/calendar_icon" /&gt;
              &lt;/TableRow&gt;
              &lt;TableRow
                  android:id="@+id/tableRow2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
                  &lt;TextView
                      android:layout_width="35dp"
                      android:layout_weight="1"
                      android:background="#dcdcdc"
                      android:gravity="center"
                      android:padding="20dip"
                      android:text="Emplyee Name"
                      android:textColor="#000000" &gt;
                  &lt;/TextView&gt;
  
                  &lt;EditText
                      android:id="@+id/screenName"
                      android:layout_width="45dp"
                      android:layout_height="50dp"
                      android:layout_marginLeft="20dip"
                      android:layout_marginRight="20dip"
                      android:layout_weight="1" &gt;
                  &lt;/EditText&gt;
              &lt;/TableRow&gt;
              &lt;TableRow
                  android:id="@+id/tableRow3"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
                  &lt;TextView
                      android:layout_height="65dp"
                      android:layout_weight="1"
                      android:background="#b0b0b0"
                      android:gravity="center"
                      android:padding="18dip"
                      android:text="Facility Type"
                      android:textColor="#000000" /&gt;
  
                  &lt;Spinner
                      android:id="@+id/spinner1"
                      android:layout_height="65dp"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:entries="@array/facility_array"
                      android:gravity="center"
                      android:padding="18dip"
                      android:prompt="@string/facility_prompt"
                      android:textColor="#000000" /&gt;
              &lt;/TableRow&gt;
              &lt;TableRow
                  android:id="@+id/tableRow4"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
                  &lt;TextView
                      android:layout_height="65dp"
                      android:layout_weight="1"
                      android:background="#b0b0b0"
                      android:gravity="center"
                      android:padding="18dip"
                      android:text="Trip Type"
                      android:textColor="#000000" /&gt;
  
                  &lt;Spinner
                      android:id="@+id/spinner2"
                      android:layout_height="65dp"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:entries="@array/trip_array"
                      android:gravity="center"
                      android:padding="18dip"
                      android:prompt="@string/trip_prompt"
                      android:textColor="#000000" /&gt;
              &lt;/TableRow&gt;
              &lt;TableRow
                  android:id="@+id/tableRow5"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
                  &lt;TextView
                      android:layout_height="65dp"
                      android:layout_weight="1"
                      android:background="#b0b0b0"
                      android:gravity="center"
                      android:padding="18dip"
                      android:text="Shift Type"
                      android:textColor="#000000" /&gt;
  
                  &lt;Spinner
                      android:id="@+id/spinner3"
                      android:layout_height="65dp"
                      android:layout_weight="1"
                      android:background="#a09f9f"
                      android:entries="@array/shift_array"
                      android:gravity="center"
                      android:padding="18dip"
                      android:prompt="@string/shift_prompt"
                      android:textColor="#000000" /&gt;
              &lt;/TableRow&gt;
              &lt;TableRow
                  android:id="@+id/tableRow5"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content" &gt;
                  &lt;Button
                      android:id="@+id/btnSubmit"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Submit" /&gt;
                  &lt;Button
                      android:id="@+id/btnSubmit1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:text="Home" /&gt;
              &lt;/TableRow&gt;
          &lt;/TableLayout&gt;
  
          &lt;EditText
              android:id="@+id/searchBox"
              android:layout_width="fill_parent"
              android:layout_height="100dp"
              android:inputType="textVisiblePassword"
              android:paddingLeft="10dp" &gt;
          &lt;/EditText&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>