Volley on Android

2

Volley on Android, I understand it's a library, the question is:

  • Library for what?
  • Is it native to Android?
  • If yes, how to use it? If not where to download?
asked by anonymous 29.03.2016 / 05:59

1 answer

4

Well, let's break it down.

What is Volley?

Volley is a google library for android, which aims to make the http implementation more "easy and optimized".

Is he native to android?

No, you need to download the lib and add to the build.gradle file in the project to get started.

Link: 'com.mcxiaoke.volley: library: 1.0.19'

Obs : Although when it came up, a lot of people used lib to improve and try to reduce code for http requests in android, which we agreed was very bureaucratic, nowadays there are better options.  

I can recommend lib Retrofit , that its yes, its implementation is much simpler and I see a lot of people using, in all the projects that I maintain today, I migrated to the retrofit. >

Bonus

Good, but what is Retrofit?

Retrofit is a framework developed by Square, which aims to optimize android http communication, specifically using the REST standard, which by Signal, has become a "market standard".

Is he native to android?

No, but for your use just add the line below to the build.gradle file:

'com.squareup.retrofit: retrofit: 2.0.0-beta2'

Sources: Android Volley

Retrofit Android

    
29.03.2016 / 13:58