title: parse value is save in edittext field android
body: <p>Here i have to parse the value from pervious activity to next activity successfully...now i wish to need that value is save in my edittext field...how can i develop this..</p>
  
  <p>In my code have to orderid value is parsed from previous activity and displayed in this activity.here the orderid value is save in my edittext field automatically...how can i do...</p>
  
  <p>in my previous activity code:</p>
  
  <pre><code> Button btninsert = (Button) findViewById(R.id.btn_insert);
  btninsert.setOnClickListener(new View.OnClickListener() {
  
  
  public void onClick(View v) {
       String s= getIntent().getStringExtra("orderid");
  Intent i = new Intent(getApplicationContext(), InsertionExample.class);
  i.putExtra(KEY_NAME, s);
  startActivity(i);
  }
  });
  </code></pre>
  
  <p>this is my InsertionExample.java class:</p>
  
  <pre><code>public class InsertionExample extends Activity {
  private final String NAMESPACE = "http://xcart.com";
  private final String URL = "http://192.168.1.168:8089/XcartLogin/services/update?wsdl";
  private final String SOAP_ACTION = "http://xcart.com/insertData";
  private final String METHOD_NAME = "insertData";
  Button btninsert;
  String selectedItem;
  
  static final String KEY_NAME = "orderid";
      @Override
      public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.change_status);
      Intent in = getIntent();
  
      // Get XML values from previous intent
      String orderid = in.getStringExtra(KEY_NAME);
  
      // Displaying all values on the screen
      TextView lblName = (TextView) findViewById(R.id.textView1);
  
  
      lblName.setText(orderid);
  
  
      Spinner spinner = (Spinner) findViewById(R.id.spinner1);
      btninsert = (Button)findViewById(R.id.btn_insert1);
      btninsert.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
              EditText Orderid = (EditText) findViewById(R.id.orderid);
              String orderid = Orderid.getText().toString();
          SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
              PropertyInfo unameProp =new PropertyInfo();
              unameProp.setName("Status");//Define the variable name in the web service method
              unameProp.setValue(selectedItem);//Define value for fname variable
              unameProp.setType(String.class);//Define the type of the variable
  
              request.addProperty(unameProp);
              PropertyInfo idProp =new PropertyInfo();
              idProp.setName("Orderid");//Define the variable name in the web service method
              idProp.setValue(orderid);//Define value for fname variable
              idProp.setType(String.class);//Define the type of the variable
              request.addProperty(idProp);
  
  
  
                SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
                envelope.setOutputSoapObject(request);
                HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
  
                try{
                 androidHttpTransport.call(SOAP_ACTION, envelope);
                    SoapPrimitive response = (SoapPrimitive)envelope.getResponse();
  
                   TextView result = (TextView) findViewById(R.id.textView2);
                    result.setText(response.toString());
               }
             catch(Exception e){
  
             }
                }
      });
  
      //attach the listener to the spinner
      spinner.setOnItemSelectedListener(new MyOnItemSelectedListener());
      //Dynamically generate a spinner data 
      createSpinnerDropDown();
  
  }
  
  //Add animals into spinner dynamically
  private void createSpinnerDropDown() {
  
      //get reference to the spinner from the XML layout
      Spinner spinner = (Spinner) findViewById(R.id.spinner1);
  
      //Array list of animals to display in the spinner
      List&lt;String&gt; list = new ArrayList&lt;String&gt;();
  
      list.add("Q");
      list.add("P");
      list.add("F");
      list.add("I");
      list.add("C");
  
      //create an ArrayAdaptar from the String Array
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
              android.R.layout.simple_spinner_item, list);
      //set the view for the Drop down list
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      //set the ArrayAdapter to the spinner
      spinner.setAdapter(adapter);
      adapter.notifyDataSetChanged();
      //attach the listener to the spinner
      spinner.setOnItemSelectedListener(new MyOnItemSelectedListener());
  
  }
  
  public class MyOnItemSelectedListener implements OnItemSelectedListener {
  
      public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int pos, long id) {
  
           selectedItem = parent.getItemAtPosition(pos).toString();
  
   }
  
      @Override
      public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
          // TODO Auto-generated method stub
  
      }
  
  
  
      }
  
      public void onNothingSelected(AdapterView&lt;?&gt; parent) {
          // Do nothing.
      }
  }
  </code></pre>
  
  <p>Here i have used below code for set the orderid on edittext field:idProp.setValue(orderid);/</p>
  
  <pre><code>            EditText Orderid = (EditText) findViewById(R.id.orderid);
              String orderid = Orderid.getText().toString();
              PropertyInfo idProp =new PropertyInfo();
              idProp.setName("Orderid");//Define the variable name in the web service method
              idProp.setValue(orderid);//Define value for fname variable
              idProp.setType(String.class);//Define the type of the variable
              request.addProperty(idProp);`
  </code></pre>
  
  <p>but i wish to need the edittext field have to automatically enter the my parsed orderid. 
  (ie)</p>
  
  <pre><code>Intent in = getIntent();
  
      // Get XML values from previous intent
      String orderid = in.getStringExtra(KEY_NAME);
  
      // Displaying all values on the screen
      TextView lblName = (TextView) findViewById(R.id.textView1);
  
  
      lblName.setText(orderid);
  </code></pre>
  
  <p>This orderid is automatically enter the edittext box...how can i do..
  please help me...give me some ideas.</p>