4. Android Frame Android-async-http

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.