Web services & Android - Part 5, Basics of OkHttp

Опубликовано: 13 Октябрь 2024
на канале: Codetutor
9,783
94

After the previous video, it is high time that we start having a look at how to make our API calls more efficient using some kind of libraries. And in this video we start by having a look at OkHttp library. OhHttp is a very popular library that is a Java Restful Client that can be used to consume Restful APIs. In this vide we have a look at some of the APIs which are part of OkHttp library such as okHttpClient, Request, Response, Callback interface and it's methods - oResponse and onFailure. We also write some bare minimum code to demonstrate how okHttp implementation looks like in an Android application.

Follow me on Twitter:   / anilvdeshpande  

Github link to source code: https://github.com/AnilDeshpande/Andr...

For code using justJava Thread, please visit previous video:    • Web services & Android - Part 4, Subt...