android navigating the values between the screen
<p>In my application i want to call a web service on clicking the button(which is in 1st screen).In the first screen i will enter an input.
Based on that input value the web services has to function.After clicking the button i called an new intent and there the web service is called,but how can i pass the value from 1 screen to other.</p>

<p>My Code:</p>

<p>This is button click(1st screen)</p>

<pre><code>public void onClick(View v)
            {
                 // TODO Auto-generated method stub     
//              EditText medit;
//              EditText medit=(EditText)findViewById(R.id.editText1);
                 Intent myIntent = new Intent(v.getContext(), dispaly.class);
                 startActivity(myIntent);


}
</code></pre>

<p>This is web service(After clicking button)</p>

<pre><code>medit=(EditText)findViewById(R.id.editText1);
             super.onCreate(savedInstanceState);
             setContentView(R.layout.main);  
             SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

                String weight = medit.getText().toString();
                String fromUnit = "Grams";
                String toUnit = "Kilograms";

                PropertyInfo weightProp =new PropertyInfo();
                weightProp.setName("Weight");
                weightProp.setValue(weight);
//              weightProp.setValue(medit.toString());
                weightProp.setType(double.class);
                request.addProperty(weightProp);

                PropertyInfo fromProp =new PropertyInfo();
                fromProp.setName("FromUnit");
                fromProp.setValue(fromUnit);
                fromProp.setType(String.class);
                request.addProperty(fromProp);

                PropertyInfo toProp =new PropertyInfo();
                toProp.setName("ToUnit");
                toProp.setValue(toUnit);
                toProp.setType(String.class);
                request.addProperty(toProp);

                SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
                envelope.dotNet = true;
                envelope.setOutputSoapObject(request);
                HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);  
                try
                {
                    androidHttpTransport.call(SOAP_ACTION, envelope);
                    SoapPrimitive response = (SoapPrimitive)envelope.getResponse();
                    Log.i("myApp", response.toString());  
                    TextView tv = new TextView(this);
                    tv.setText(weight+" "+fromUnit+" equal "+response.toString()+ " "+toUnit);
                    setContentView(tv); 

                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
            }.
</code></pre>
