
Add Retrofit library to Android application project
Learn how to use http methods get and post with retrofit to send and receive data between an android client and a server, using a weather example.
After completing lecture, you will be able to send GET request using Retrofit
You will be able to send POST request using Retrofit
Learn to send a single parameter with Retrofit 2 using the Query annotation to fetch posts by a specific user id, demonstrating request construction and asynchronous handling.
Demonstrate fetching a post by user id and post id with Retrofit 2 by defining a two-parameter query method and displaying the result.
Use Retrofit 2 to pass a dynamic map of query parameters in network requests. Populate the map in the activity and call the endpoint to view the response.
Change part of the url with retrofit 2 path annotation to make post id dynamic. Define a get post by id method that replaces the path segment with the id.
Learn to upload a file with retrofit 2 using multipart form data, applying multipart and part annotations, posting to a file io api, and parsing the response for upload details.
Discover how to send requests with static headers in Retrofit 2 for Android, using Content-Type and User-Agent headers.
Send headers dynamically in Retrofit 2 for Android by creating a GET request with Content-Type and User-Agent using header annotations in a Java interface and view the response.
Learn to implement http logging with Retrofit 2 on Android using OkHttp logging interceptor, configure levels none basic headers and body, and view request and response details.
Integrate a json converter with Retrofit 2 to fetch comments by id, map fields with serialized names in the Calment class, and configure a default converter factory.
Generate Java classes from JSON data using JsonSchema2POJO, creating User, Address, and Company models, then call a Retrofit API to get a user by id.
Explore JsonSchema2POJO for offline usage in an Android Retrofit 2 workflow. Generate a Java class from a schema, import an offline project, and fetch a comment by id.
Discover how to integrate an XML converter with Retrofit for Android, send a get request to fetch a breakfast menu, convert XML to Java objects, and display each food name.
Build a football app with standings, fixtures, and top scorers pages, configure retrofit, a Java interface, and a bottom navigation, using port moncks API.
Set up a new Android app, add Retrofit, converter, and http logging dependencies, and configure internet permission. Create API interface and application class, then initialize Retrofit with configured http client.
Create a fixtures page using Retrofit 2 to fetch fixtures with API token and include parameter, parse JSON to POJOs, and display team names and scores in a recycler view.
COUPONS FOR MY OTHER COURSES:
Remote Controlled Car with Arduino and Android: https://www.udemy.com/remote-controlled-car-with-arduino-and-android/?couponCode=RETROFIT2017
In this course you will learn:
In the end of this course you will be able:
This course is practical and engaging: