Why using a framework to make Http requests in Android instead of using its own classes to make this? [closed]

StackOverflow https://stackoverflow.com/questions/22585462

Frage

There are many frameworks to make http requests in Android, like Retrofit and Volley. But also, Android has its own classes to make this type of request, like HttpURLConnection and HttpClient

So what is the advantage of using some framework like these mentioned?

My doubt is if there is some big advantage in make requests using some framework, instead of using Android native classes.

War es hilfreich?

Lösung

The advantage is things like retries, restarts, threading & synchronization, and state management will be handled for you. This comes at the expense of configurability, but it's not a huge expense.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top