1. Android-async-http Introduction
The main features are:
(1) Sending asynchronous HTTP requests to process response information in an anonymous callback object;
(2) The HTTP request occurs in an asynchronous thread other than the UI (main) thread;
(3) Internal thread pool is used to handle concurrent requests;
(4) through the Requestparams class constructs the get/post;
(5) Built-in multipart file upload, do not need third-party library support;
(6) Streaming JSON upload, no need for additional libraries;
(7) able to handle circular and relative redirects;
(8) compared to your app size, the library's size is very small, all only 90kb;
(9) in a variety of mobile connection environment with automatic intelligent request retry mechanism;
(10) Automatic gzip response decoding;
(11) Built-in various forms of response parsing, there are native byte stream, String,json object, even can write response to the file;
(12) Permanent cookie preservation, internal implementation using Android Sharedpreferences;
(13) integration through Basejsonhttpresponsehandler and various JSON libraries;
(14) Support SAX parser;
(15) Support various languages and content coding, not only UTF-8;
Note:
android-async-http Project address: https://github.com/loopj/android-async-http
android-async-http Document Description: http://loopj.com/android-async-http/
2. use of Android-async-http
- Processing response information in an anonymous callback callback
4. Android Frame Android-async-http