title: Http cookie store in Android
body: <p>I am developing an Android client for the site with authorization. I have a post method. Example my code:</p>
  
  <pre><code>public void run() {
      handler.sendMessage(Message.obtain(handler, HttpConnection.DID_START));
      httpClient = new DefaultHttpClient();
      HttpConnectionParams.setSoTimeout(httpClient.getParams(), 25000);
      HttpResponse response = null;
      try{            
          switch (method){
          case POST:
              HttpPost httpPost = new HttpPost(url);
              httpPost.setHeaders(headers);
              if (data != null) httpPost.setEntity(new StringEntity(data));
              response = httpClient.execute(httpPost);
              break;
          }
          processEntity(response);
  
      }catch(Exception e){
          handler.sendMessage(Message.obtain(handler, HttpConnection.DID_ERROR, e));
  
      }
      ConnectionManager.getInstanse().didComplete(this);      
  }
  </code></pre>
  
  <p>How to keep cookies?</p>