
Learn to send Android network requests with Retrofit 2, using annotations for parameters and headers, handle responses, post multipart and url-encoded data, and add converters and logging.
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.
Send a get request with multiple query parameters named id by passing a list of ids using retrofit 2. Retrieve posts with ids 1, 2, and 3.
Learn how Retrofit 2 handles null parameters in Android requests, including user ID and ID, and see how omitting parameters changes server responses.
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 how to send requests to different endpoints with retrofit by using a dynamic url method and the Url annotation, avoiding new retrofit instances or interfaces.
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.
Learn to send form url encoded post requests with retrofit 2 by defining a post method with four fields (id, user id, title, body) and handling the newly created post.
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 standings page in an Android soccer app using Retrofit 2, fetch standings for a season, and present results in a recycler view with a standings fragment and adapter.
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: