This example is for sending a Custom Request in Volley. If you are new to Volley and want to learn how to send a simple GET, POST request in Volley read this
I always have preferred Volley library over Retrofit for sending network requests in an Android Application mostly because of its cache handling and request prioritization. But many Retrofit users argue that one of the biggest advantage with Retrofit is that it automatically parses the json/xml response not knowing that the same could be done with Volley. You already know that Volley provides inbuilt support which will gives us response in any of these three formats
- String
- JSONObject
- JSONArray
Now using a custom request with the help of Gson you can directly receive response in the form of POJO- Java Objects