title: Invalid use of SingleClientConnManager: connection still allocated
body: <p>I want to know why does this code not execute? I'm trying to send my data from my device via POST method but there is no error. The app just finishes by itself on my device by communicating "My app was stopped.:</p>
  
  <p>Here is execution: </p>
  
  <pre><code>KlientNameValue kn = new KlientNameValue(getApplicationContext());
  kn.new  MyAsyncTask().execute(zam.klient.getNazwa(),zam.klient.getNip(),zam.klient.getAdres());
  </code></pre>
  
  <p>And here is code: </p>
  
  <pre><code>public class KlientNameValue {
  
  List&lt;NameValuePair&gt; KlientNameValuePairs = new ArrayList&lt;NameValuePair&gt;();
  Context context;
  public KlientNameValue(Context context) {
      super();
      this.context=context;
  }
  
  
  
   public class MyAsyncTask extends AsyncTask&lt;String, Void, Void&gt; {
  
        @Override protected Void doInBackground(String... params) { 
            // TODO     Auto-generated method stub 
            postData(params[0], params[1], params[2]);
        return null;
  
        }
  
        @Override
        protected void onPostExecute(Void result) {
  
        Toast.makeText(context , "Zlecenie zostało wysłane",
       Toast.LENGTH_LONG).show();
            }
  
        void postData(String nazwa, String nip, String adres) {
            HttpClient httpclient = new DefaultHttpClient();
            HttpPost httppost = new HttpPost("here is my default link :)");
  
        try { // Add your data
  
        KlientNameValuePairs = new ArrayList&lt;NameValuePair&gt;();
        KlientNameValuePairs.add(new BasicNameValuePair("Kli_imie", nazwa));
        KlientNameValuePairs.add(new BasicNameValuePair("Kli_adres", adres));
        KlientNameValuePairs.add(new BasicNameValuePair( "Kli_nr_telefonu",
        nip)); 
  
  
  
        httppost.setEntity(new UrlEncodedFormEntity( KlientNameValuePairs));
        HttpResponse response = httpclient.execute(httppost);
        //httppost.setEntity(new UrlEncodedFormEntity( 
        //      ZamowienieNameValuePairs)); // HttpResponse response1 =
  
  
  
        } catch (IOException e) { // TODO Auto-generated catch block
        e.printStackTrace(); }
  
        }
  
        }
  </code></pre>
  
  <p>}</p>
  
  <p>Error: </p>
  
  <pre><code>02-15 17:45:24.695: E/AndroidRuntime(21890): at android.widget.Toast.&lt;init&gt;(Toast.java:94) 
  02-15 17:47:19.343: W/SingleClientConnManager(22288): Invalid use of SingleClientConnManager: connection still allocated.
   02-15 17:47:19.343: W/SingleClientConnManager(22288): Make sure to release the connection before allocating another one. 
  </code></pre>