![]() ![]() Our first goal is to get all the cryptocurrencies list using Retrofit from the Internet. Now that you know that everything is closely related, we are going to use all these 3 libraries at once. Retrofit is strongly coupled with OkHttp and makes intensive use of it. In contrast, Retrofit is a high-level REST abstraction build on top of OkHttp. OkHttp is a pure HTTP/SPDY client responsible for any low-level network operations, caching, requests and responses manipulation. Also if you need, you can add custom converters to Retrofit to process XML or other protocols.įor making HTTP requests Retrofit uses the OkHttp library. Typically to serialize and deserialize objects to and from JSON you use an open-source Java library - Gson. In Retrofit you configure which converter is used for the data serialization. ![]() It makes it relatively easy to retrieve and upload JSON (or other structured data) via a REST based webservice. This library, in my opinion, is the most important one to learn, as it will do the main job. Retrofit is a REST Client for Java and Android. Part 5: Handle RESTful Web Services using Retrofit, OkHttp, Gson, Glide and Coroutines (you’re here).Part 4: How to implement Dependency Injection in your app with Dagger 2.Part 3: All about that Architecture: exploring different architecture patterns and how to use them in your app.Part 2: How to start building your Android app: creating Mockups, UI, and XML layouts.Part 1: An introduction to the SOLID principles. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |