The question is just this: to consume Webservices with Android - Retrofit or Volley? I found the two complicated at first, but reading the documentation seemed to me that retrofit might be somewhat less complicated. What do you suggest?
The question is just this: to consume Webservices with Android - Retrofit or Volley? I found the two complicated at first, but reading the documentation seemed to me that retrofit might be somewhat less complicated. What do you suggest?
Retrofit is one of the most powerful and popular libraries of HTTP Client
to Android
and Java
. I would recommend using Retrofit2
. No doubt it will make your life easier when you study at it, because one of the great advantages of Retrofit2 is its 'Simplicity'. But if you are a beginner, I would recommend you do everything on 'UNHA', from creating the connection to Webservice
to the deserialization of your consumed object, because then you would see how the consumption flow works.
I have " got " (the company I work has hahaha) an application on Android Native and I consume WS but I do not use any of these two tools for good reason important from my point of view, maintenance . And I sincerely suggest do what you need to consume WS so you will not have anything " left over" in your application (you do just what you need and nothing else ), for mobile development you need to take into account the "unused" snippets of your code. It is not time consuming hard to consume a WS (the reality is that we mystify it a lot), and if you need to change anything / strong> you have the opportunity and nothing prevents you.
Ps. As I said it is my recommendation , if the opinions are different okay (happens).