title: How to send request http delete using loopj at android
body: <p>I make some android app.
  To log out, I must send http delete request to server.
  I used loopj liberary.</p>
  
  <p>So, I make like this.</p>
  
  <p><strong>ConnectionInfo.java</strong></p>
  
  <pre><code>public ConnectionInfo(Context ctx) {    
      this.context = ctx;    
  }
  
  public void sign_out(String Url, AsyncHttpResponseHandler handler) {
      CommonClient.setCookieStore(myApplication.getCookieStore());
      CommonClient.delete(context, Url.toString(), handler);
  }
  
  public void sign_in(HashMap&lt;String, String&gt; params, JsonHttpResponseHandler handler) {
      Uri.Builder requestUri = new Uri.Builder();
      requestUri.scheme(SCHEME);
      requestUri.authority(HOST);
      requestUri.path(sign_in);
      CommonClient.post(context, requestUri.toString(), params, handler);
  }
  </code></pre>
  
  <p><strong>CommonClient.java</strong></p>
  
  <pre><code>public class CommonClient {
      private static final AsyncHttpClient AsyncClient = new AsyncHttpClient();
  
  public static void post(Context mContext, String actionserver,
      RequestParams params, JsonHttpResponseHandler responseHandler) {
      AsyncClient.post(mContext, actionserver, params, responseHandler);
  }
  </code></pre>
  
  <p>and then</p>
  
  <p>Some Activity class, call sign_in method.</p>
  
  <pre><code>connectionInfo.sign_in(params, UserLoginJsonHandler);
  </code></pre>
  
  <p>and Finished some work, the other Activity class call sign_out method. Like this.</p>
  
  <pre><code>connectionInfo.sign_out(url, asyncHttpResponseHandler);
  </code></pre>
  
  <p>But, I login another ID.
  Keeping login before user.</p>
  
  <p>I think, different login and logout session or cookies something?</p>
  
  <p>How Can I logout using loopj?
  How do I Fix it?</p>
  
  <p>Please help me.</p>