O'Reilly logo

Mastering Android Application Development by Antonio Pachón Ruiz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Google Volley and OkHttp

To master Android, we can't depend on a solution such as Parse. As developers, we must be prepared to face different server-side solutions. We can't always work with ParseObjects because we need to be able to do an HTTP Post request and consume the data in the JSON or XML format. However, this doesn't mean that we have to do all of this manually; we can use Google's official libraries to help us with parsing the data and the network requests.

For this, we will take a look at Google Volley, a powerful library, to manage our network requests. We will also discuss OkHttp, an ultrafast HTTP client, and combining the two them to get an amazing solution for network requests.

Google Volley

According to the official definition and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required