ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Retrofit and REST API Android Tutorial 2020 | Kotlin | JSON | API sync Kotlin | Android Gradle Fix

Android

json data fetch

android app kotlin

kotlin app

kotlin project

engineering projects

btech presentation

btech final year project cse

cse project android

android kotlin project

android kotlin learn free

kotlin development

retrofit kotlin tutorial

REST API

REST API in kotlin

REST API tutorial json

json tutorial kotlin

best kotlin tutorial

kotlin projects for 2020

android with kotlin course

full kotlin course

kotlin tricks

java to kotlin convert

json

Автор: Techno Learning

Загружено: 2020-04-16

Просмотров: 3913

Описание: Code to be added in android gradle file :
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = "1.8"
}

More about :

In this video series we will learn how to use Retrofit, which is a type-safe HTTP client for Android and Kotlin.
Retrofit allows easy communication with a web service by abstracting the HTTP API into a Java interface.

We will set up Retrofit in a new Android Studio project by adding the necessary Gradle dependencies, and then already do our first GET request.
We create an interface with 1 method that we annotate with @GET and the relative URL to the API endpoint of the REST API we want to query. We then create a Retrofit instance, define the baseUrl, add GSON as the converter by passing GsonConverterFactory to the addConverterFactory method, and let Retrofit create the implementation of our API interface at compile time.
The Call object that our GET method returns encapsulates a single request + response. With enqueue we can execute this request asynchcronously on a background thread and get our result back in the onResponse callback. OnFailure will be called if something in the process of communicating with the server or processing the response went wrong. With isSuccessFull we check if our response code is between 200 and 300 and if that's the case we can retrieve our result from the response body.
GSON will parse the array of JSON objects into a List of the kotlin model class that we prepared beforehand.

So watch the full video and make this demo app.



Thanks for Watching!
#Android
#Retrofit
#Volley
#BTech
#CSE
#Engineering
#Java
#Kotlin
#Code
#UI
#UX
#College Project
#Design

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Retrofit and REST API Android Tutorial 2020 | Kotlin | JSON | API sync Kotlin | Android Gradle Fix

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Plant Disease Detection Project | Android Development with Machine Learning | PART 1

Plant Disease Detection Project | Android Development with Machine Learning | PART 1

Что такое Rest API (

Что такое Rest API (

Россия стягивает войска / Президент выступил с заявлением

Россия стягивает войска / Президент выступил с заявлением

ViewModels & Configuration Changes - Android Basics 2023

ViewModels & Configuration Changes - Android Basics 2023

Java Collections Tutorial

Java Collections Tutorial

Японец по цене ВАЗа! Оживляем пацанскую мечту :)

Японец по цене ВАЗа! Оживляем пацанскую мечту :)

Maven Tutorial - Crash Course

Maven Tutorial - Crash Course

Конец империи. Почему Ильхам Алиев пошел против Путина

Конец империи. Почему Ильхам Алиев пошел против Путина

Plant Disease Detection Project | Android Development with Machine Learning | PART 2

Plant Disease Detection Project | Android Development with Machine Learning | PART 2

Что такое REST API? HTTP, Клиент-Сервер, Проектирование, Разработка, Документация, Swagger и OpenApi

Что такое REST API? HTTP, Клиент-Сервер, Проектирование, Разработка, Документация, Swagger и OpenApi

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]