Networking on Android using Retrofit 2
4.4 (104 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
436 students enrolled

Networking on Android using Retrofit 2

Send requests and handle responses using Retrofit 2 library
4.4 (104 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
436 students enrolled
Created by Gayrat Rakhimov
Last updated 5/2018
English
English [Auto-generated]
Current price: $34.99 Original price: $49.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 2 hours on-demand video
  • 23 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Assignments
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Set up Retrofit 2 library and use in Android application projects
  • Integrate Retrofit 2 in existing projects
  • Use Retrofit library more efficiently and solve more complicated problems if you are experienced developer
Course content
Expand all 26 lectures 02:02:17
+ Sending requests
14 lectures 33:37
HTTP methods
02:38

After completing lecture, you will be able to send GET request using Retrofit

GET request
04:25
Send GET request to get array of users in JSON format
GET request: task
1 question

You will be able to send POST request using Retrofit

POST request
02:21
In this task, you should send POST request to send new POST in JSON format
POST request: task
1 question
Query: single parameter
02:09
In this task, you should send GET request to https://jsonplaceholder.typicode.com/comments with parameter postId=1 and show response in Android monitor
Query: task
1 question
Query: multiple parameters
01:44
Query: multiple parameters with the same name
02:02
Send GET request to https://jsonplaceholder.typicode.com/users with parameters id=1, id=2 and id=3. Show response in Android monitor.
Query: task
1 question
Query: null parameter
03:24
Query: map of parameters
01:57
Path: change part of URL
02:23
Send GET request to https://jsonplaceholder.typicode.com/users/1 using @Path annotation and show response in Android Monitor.
Path: task
1 question
Url: how to send request to url with different endpoint
03:09
Send POST request with image to ocr.scape API and show recognized text in Android Monitor.
Multipart: task
1 question
FormUrlEncoded
01:47
Send POST request with new user data as Form Encoded data.
FormUrlEncoded: Task
1 question
Headers: static
01:31
Headers: dynamic
01:26
Integrate Basic Authorization using Retrofit
Headers: task
1 question
+ Handling responses
5 lectures 15:37
Logging
02:59
JSON converter
02:44
Get post with id=1, parse it and show title in Android monitor
JSON converter: task
1 question
Create Java classes faster using JsonSchema2POJO
03:38
Create Todo class using JsonSchema2POJO and parse list of todos. Show amount of todos in Android monitor.
Create Java classes faster using JsonSchema2POJO: task
1 question
JsonSchema2POJO: offline usage
03:28
XML converter
02:48
Send GET request and get RSS feed in XML format, parse it and show each item's title in Android monitor.
XML converter: task
1 question
+ Practice
4 lectures 32:15
Practice: setup
06:49
Practice: standings
12:55
Practice: fixtures
10:56
Show topscorers in new fragment
Practice: task
1 question
+ Conclusion
1 lecture 01:18

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

Congratulations!
01:18
Requirements
  • You should be able to set up Android development environment (JDK, Android Studio and SDK)
  • You should be familiar with what HTTP, JSON, XML, Server are
Description

In this course you will learn:

  • How to send request using Retrofit 2 library
  • How to handle response
  • How to use Retrofit 2 annotations

In the end of this course you will be able:

  • To send GET request with query parameters and headers
  • To send POST request with Multipart form data and Url encoded form data
  • To integrate JSON and XML converter into Retrofit 2
  • To integrate HTTP logging interceptor

This course is practical and engaging:

  • Less theory, more practice
  • Information is simplified as possible
  • Each tutorial is provided with code example
  • 12 practical tasks on which you can learn by doing
  • In the end of this course, you will create soccer application from scratch using Retrofit 2 library
Who this course is for:
  • Anyone who wants to use Retrofit 2 library in their project
  • Anyone who wants to set server-client communication using Retrofit 2 library
  • Anyone who does not want to spend time for watching YouTube videos, read tutorials from different sources where only basics are covered or information are not structured