简体   繁体   中英

What is the use of Volley API in android?

在我的Android应用程序开发使用而不是HTTPs去排球API有人建议我有什么区别volley API和HTTPs thans !!

  • Volley makes it much easier to handle responses as String s, JSONObject s and JSONArray s.
  • Volley does the work on a separate thread internally, so no need for you to create an AsyncTask .
  • Volley creates a central RequestQueue that performs HTTP requests serially.
  • Volley allows you to easily synchronize pausing, resuming and cancelling of requests with the Activity / Fragment lifecycle.
  • Volley with okHttp and SPDY is the fastest HTTP library out there.
  • Volley also allows you to download images and display them in a NetworkImageView . Even if the image sizes are very large, Volley never seems to throw an OutOfMemoryError .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM