Back to project page D2D_Fountain_codes_cp.
The source code is released under:
GNU General Public License
If you think the Android project D2D_Fountain_codes_cp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package sonic.xud.assistclass; /*from w w w . j a va 2s .c om*/ import org.apache.http.client.HttpClient; import org.apache.http.impl.client.DefaultHttpClient; public class MyHttpClient { private static HttpClient httpClient; private MyHttpClient() { super(); } public static HttpClient getHttpClient(){ if(httpClient == null){ synchronized (MyHttpClient.class) { if(httpClient == null){ httpClient = new DefaultHttpClient(); return httpClient; } } } return httpClient; } }