Android Volley Jar, the Android Volley framework is an indispensable and important framework in android development. The more convenient way to use Android development is to use the Volley framework. Framework Introduction We inevitably need to use network technology when developing Android applications, and in most cases applications use the HTTP protocol to send and receive network data. The Android system mainly provides two methods for HTTP communication, HttpURLConnection and HttpClient. We can see these two classes in the code of almost any project, and their usage rate is very high. However, the usage of HttpURLConnection and HttpClient is still a little complicated. If not properly encapsulated, it is easy to write a lot of repeated code. As a result, some Android network communication frameworks have emerged, such as AsyncHttpClient, which encapsulates all HTTP communication details internally. We only need to simply call a few lines of code to complete the communication operation. Another example is Universal-Image-Loader, which makes the operation of displaying network images on the interface extremely simple. Developers do not need to worry about how to obtain images from the network, nor do they need to worry about details such as starting threads and recycling image resources. Universal-Image- Loader has done everything. The Android development team also realized the need to simplify HTTP communication operations, so they launched a new network communication framework-Volley at the 2013 Google I/O conference. Volley can be said to combine the advantages of AsyncHttpClient and Universal-Image-Loader. It can perform HTTP communication very simply like AsyncHttpClient, and can also easily load images on the network like Universal-Image-Loader. In addition to being simple and easy to use, Volley has also made significant adjustments in terms of performance. Its design goal is to be very suitable for network operations with small amounts of data but frequent communication. For network operations with large amounts of data, such as When it comes to downloading files, etc., Volley's performance will be very poor. The applications shown in the picture above all have small amounts of data but frequent network communication, so they are very suitable for using Volley.
Expand