文件名称:Android异步http请求工具包及源码
文件大小:136KB
文件格式:ZIP
更新时间:2016-05-17 09:03:29
异步 async http 任务
开源的异步http连接工具类源码. 示例代码: public class TwitterRestClient { private static final String BASE_URL = "http://api.twitter.com/1/"; private static AsyncHttpClient client = new AsyncHttpClient(); public static void get(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) { client.get(getAbsoluteUrl(url), params, responseHandler); } public static void post(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) { client.post(getAbsoluteUrl(url), params, responseHandler); } private static String getAbsoluteUrl(String relativeUrl) { return BASE_URL + relativeUrl; } }
【文件预览】:
异步http请求
----android-async-http-master()
--------bin()
--------build.xml(3KB)
--------gen()
--------src()
--------.project(821B)
--------.classpath(288B)
--------examples()
--------.gitignore(97B)
--------project.properties(381B)
--------README.md(1KB)
--------AndroidManifest.xml(408B)
----android-async-http-1.4.4.jar(34KB)