【android-async-http框架】千金一刻莫空度,老大无成空自伤。这篇文章主要讲述android-async-http框架相关的知识,希望能为你提供帮助。
android-async-http简单介绍:An asynchronous, callback-based Http client for android built on top
of Apache‘s
HttpClient
libraries.即在Apache‘s
HttpClient 开源框架(该Apache‘s HttpClient
框架在eclipse里面不用导入额外的jar包,由于已经自带了)的基础上为android所设计的框架。
Features
- Make asynchronous HTTP requests, handle responses in anonymous callbacks
- 异步的HTTP请求,异步的响应回调
- HTTP requests happen outside the UI thread
- HTTP请求不在UI线程内。避免了ANR错误
- Requests use a threadpool to cap concurrent resource usage
- 通过threadpool实现Request,限制并发资源的使用
- GET/POST params builder (RequestParams)
- Multipart file uploads with no additional third party libraries
- Tiny size overhead to your application, only 19kb 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
- 可选择性的永久cookie保存。在你的SharedPreferences上保存cookies
http://loopj.com/android-async-http/
推荐阅读
- 安卓权威编程指南 挑战练习 22章 应用图标
- Android中Button四种点击事件实现方式
- 快手 Android 工程师面经
- Android中AsyncTask使用具体解释
- Android自己定义View基础篇之SwitchButton开关
- vlc源码分析 vlc-android native调试配置
- Java(Android)线程池
- 安卓权威编程指南-笔记(第21章 XML drawable)
- Android 关于::app:clean :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE,引用jar冲突问题