• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
July 17, 2022 |12.4K Views
How to use Retrofit in Android with Example
  Share   Like
Description
Discussion

In this video, we will be seeing how to Post Data to API using Retrofit in Android?

Let us understand what is retrofit?
Retrofit is a library which is developed by square. This library in android is use to handle REST API calls within android application. With the help if this library we can consume data from web APIs within our android application. 
https://www.geeksforgeeks.org/videos/how-to-create-apis-for-crud-operations-using-php-and-mysql-database/ 
In this video, we will be using the APIs which we have build in the video names as How to build APIs using PHP and my SQL database.

In this video, we will be building a simple application in which we will be displaying the list of courses in the recycler view. In this list of course we will be displaying the course name, course image, course link, course duration as well as course price. We will be reading the data from the API and displaying that data within our recycler view. 

Along with that we will be able to add new course within our my SQL database using addcourse API. Along with that we will be able to update and delete the course which are existing within our database. For performing all this crud operations we will be using retrofit library within our android application. We will be using Android studio as an IDE for building this project and we will be using java as a programming language. 

How to Post Data to API using Retrofit in Android?
https://www.geeksforgeeks.org/how-to-post-data-to-api-using-retrofit-in-android/