পোস্টগুলি

জুন, ২০১৪ থেকে পোস্টগুলি দেখানো হচ্ছে

Android tutorial Http Response from apache server

Just create a new java class then copy this code..................... package com.rskhan; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.conn.params.ConnManagerParams; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.params.HttpConnectionParams; import org.apache.http.params.HttpParams; import android.util.Log; public class CustomHttpClient {     /** The time it takes for our client to timeout */     public static final int HTTP_TIMEOUT = 30 * 1000; // milliseconds     /** Single instance of our HttpClient */     private static HttpClient mHttpClient; ...