Introduction: Android 异步 Http 请求
Other: 特点:(1) 在匿名回调中处理请求结果
(2) 在 UI 线程外进行 http 请求
(3) 文件断点上传
(4) 智能重试
(5) 默认 gzip 压缩
(6) 支持解析成 Json 格式
(7) 可将 Cookies 持久化到 SharedPreferences
More: Author   ReportBugs   Doc

Build Status

An asynchronous, callback-based Http client for Android built on top of Apache's HttpClient libraries.


See what is new in version 1.4.9 released on 19th September 2015


Latest Javadoc for 1.4.9 release are available here (also included in Maven repository):


  • Make asynchronous HTTP requests, handle responses in anonymous callbacks
  • HTTP requests happen outside the UI thread
  • Requests use a threadpool to cap concurrent resource usage
  • GET/POST params builder (RequestParams)
  • Multipart file uploads with no additional third party libraries
  • Tiny size overhead to your application, only 60kb for everything
  • Automatic smart request retries optimized for spotty mobile connections
  • Automatic gzip response decoding support for super-fast requests
  • Optional built-in response parsing into JSON (JsonHttpResponseHandler)
  • Optional persistent cookie store, saves cookies into your app's SharedPreferences


For inspiration and testing on device we've provided Sample Application.
See individual samples here on Github
To run Sample application, simply clone the repository and run this command, to install it on connected device

gradle :sample:installDebug


You can now integrate this library in your project via Maven. There are available two kind of builds.

releases, maven central

Maven URL:
ArtifactId: android-async-http
Version: 1.4.9
Packaging: JAR or AAR


repositories {

dependencies {
  compile ''

development snapshots

Maven URL:
ArtifactId: android-async-http
Version: 1.5.0-SNAPSHOT
Packaging: JAR or AAR


repositories {
  maven {
    url ''
dependencies {
  compile ''

Documentation, Features and Examples

Full details and documentation can be found on the project page here:

Support Me
About Me
Google+: Trinea trinea
GitHub: Trinea