標籤:thread color weight lan jar ext make 避免 one
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
可用在get/post提交資料上Documentation, Features and Examples
Full details and documentation can be found on the project page here:
http://loopj.com/android-async-http/
android-async-http架構