We have to override the getBodyContentType() method in volley to enable “form-urlencoded parameters” in POST request using Volley. Here is how the code will look like. If you are not familiar with Volley, Checkout my post here on volley. It will give you a perfect picture on what Volley can do. Code – Method 1 Here is another… Read More »
This is simple, just do like this. It would be better if you do this once in the Class that extends the Application Class.
Volley, be default doesn’t support GSON. But it gives the flexibility to do anything. Lets see how we can do this. You can read about Complete Volley Demo in Android from here.. I am going to create a new class for the GSON. Below is my class for the GSON. MyGson.java Now create a class named ‘GsonRequest’ for… Read More »