Issue on httpost, send multiple variables
<p>i have this code here, now, i'm just able to send the value parameter, i can't send the others.</p>

<p>What should i do in order to send the other values of the editText type?
I.e i want to be able to send : mbiemer with httpost method...but how..</p>

<p>Thanks</p>

<pre><code>public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.home_layout);
    value=(EditText)findViewById(R.id.editText1);
    mbiemer=(EditText)findViewById(R.id.msgMbiemer);
    telefon=(EditText)findViewById(R.id.msgTelefon);
    adresa=(EditText)findViewById(R.id.msgAdresa);
    ora=(EditText)findViewById(R.id.msgOra);
    per=(EditText)findViewById(R.id.msgPer);
    dyqan=(EditText)findViewById(R.id.msgDyqan);
    statusi=(EditText)findViewById(R.id.msgStatusi);

    btn=(Button)findViewById(R.id.button1);
    pb=(ProgressBar)findViewById(R.id.progressBar1);
    pb.setVisibility(View.GONE);
    btn.setOnClickListener(this);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}

public void onClick(View v) {
    // TODO Auto-generated method stub
    if(value.getText().toString().length() &lt; 1) {
        // out of range
        Toast.makeText(this, "please enter something", Toast.LENGTH_LONG).show();
    } else {
        pb.setVisibility(View.VISIBLE);
        new MyAsyncTask().execute(value.getText().toString());  
    }
}

private class MyAsyncTask extends AsyncTask&lt;String, Integer, Double&gt; {

    @Override
    protected Double doInBackground(String... params) {
        // TODO Auto-generated method stub
        postData(params[0]);
        return null;
    }

    protected void onPostExecute(Double result){
    pb.setVisibility(View.GONE);
    Toast.makeText(getApplicationContext(), "command sent", Toast.LENGTH_LONG).show();
}

protected void onProgressUpdate(Integer... progress){
    pb.setProgress(progress[0]);
}

public void postData(String valueIWantToSend) {
    // Create a new HttpClient and Post Header
    HttpClient httpclient = new DefaultHttpClient();
    HttpPost httppost = new HttpPost("http://192.168.10.28/app/app1.php");

    try {
        // Add your data
        List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;();
        nameValuePairs.add(new BasicNameValuePair("myHttpData", valueIWantToSend));
        httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));

        // Execute HTTP Post Request
        HttpResponse response = httpclient.execute(httppost);

    } catch (ClientProtocolException e) {
        // TODO Auto-generated catch block
    } catch (IOException e) {
        // TODO Auto-generated catch block
    }
}

}
}
</code></pre>
