KOTLIN Retrofit Tutorial | Part 1 | Simple GET Request | For Beginners | Easiest Way to API Call

KOTLIN Retrofit Tutorial | Part 1 | Simple GET Request | For Beginners | Easiest Way to API Call

Yash Nagayach

3 года назад

93,535 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

N2 Clips
N2 Clips - 16.10.2022 07:27

You saved my day man, Small contribution from my side for your channel. Keep it up

Ответить
Johanes Alberto
Johanes Alberto - 10.10.2023 16:24

thanks bro

Ответить
lizzygurl
lizzygurl - 17.09.2023 23:23

im not getting the retrofit option

Ответить
Soumya Singh
Soumya Singh - 14.07.2023 09:04

what version should i add now? for gson , retrofit and compile?

Ответить
Lyawile H.A
Lyawile H.A - 09.07.2023 06:41

Yes, it is very useful. Thanks a lot.

Ответить
Farrukh Vlogging World
Farrukh Vlogging World - 28.06.2023 08:08

It is very simple
You are brilliant mentor

Ответить
Sad
Sad - 10.06.2023 00:26

Super helpful thanks a lot

Ответить
Dmitry Savkin
Dmitry Savkin - 14.05.2023 14:16

Website not found

Ответить
vinit hanabar
vinit hanabar - 11.05.2023 22:32

nicely explained😇😇😇

Ответить
MERTCAN TOPCU
MERTCAN TOPCU - 10.05.2023 00:21

Hey sure how can i get u

Ответить
SV Pritish
SV Pritish - 04.04.2023 10:07

The app keeps crashing. I did exactly as u did. Could you help me out?

Ответить
Karan Bagga
Karan Bagga - 09.01.2023 16:49

Please make for post api

Ответить
peter peter
peter peter - 28.12.2022 23:37

Thanks a lot. Looking to learn more on authentication of REST APis

Ответить
Best Reviews
Best Reviews - 15.12.2022 19:17

u r best from bangladesh

Ответить
いずみ
いずみ - 06.12.2022 17:42

Hello, my emulator keeps crushing...I checked the logcat and it looks like there is an error on .buid() (line 23 in your video) in getmyData function and a problem with calling the getMyData function (just below the setContentView, line 14). I checked my code multiple times, but I couldn't figure out what's wrong.
Please help!

Ответить
tanvi tripathi
tanvi tripathi - 01.12.2022 22:25

Awsome

Ответить
Manan Sharma
Manan Sharma - 26.11.2022 15:00

The txtId that you used in Main Activity file from .xml file is not working properly and showing errors, can you tell what's wrong? @YashNagayachCode

Ответить
Pranay Mandadapu
Pranay Mandadapu - 21.11.2022 10:20

This is the first vedio where I understand what is retrofit

Ответить
Martin
Martin - 08.11.2022 21:35

Hey Yash i have a problem and i hope you can help me,
my api response looks like
```
{"BYTE":["byte","byte","byte","byte"],"IP":["ip","ip","ip","ip"],"NAME":["name","name","name","name"],"PORT":["port","port","port","port"]}
```
and the code doesnt like that i searched in the internet for a solution/another serializer, but all the solutions doesnt work, e.g.
stackoverflow /questions/40973633/retrofit-2-get-json-from-response-body

Ответить
Martin
Martin - 06.11.2022 19:43

class MainActivity : AppCompatActivity() {
lateinit var text1: TextView
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
text1 = findViewById<TextView>(R.id.txtId)
getMyData();
}

Ответить
Quân Pham
Quân Pham - 25.10.2022 11:19

When I call GsonConverterFactory.create(), it's show error Unresolved reference: GsonConverterFactory. I already declare 'com.squareup.retrofit2:converter-gson' in file build.gradle. Please help me!!!

Ответить
Vikash Sharma
Vikash Sharma - 21.10.2022 03:31

Thank you for taking time and doing this,

Ответить
Z3R0
Z3R0 - 18.10.2022 03:14

Thank you my friend !

Ответить
Dipti Ranjan Dash
Dipti Ranjan Dash - 08.09.2022 09:01

sorece code will specially the jason data

Ответить
Road to Nature
Road to Nature - 21.08.2022 11:41

from morocco thank you great tuto

Ответить
FARIYAD KHAN
FARIYAD KHAN - 07.08.2022 15:07

Hello sir i just try to learn but in my ide android studio m not able to import call class of Retrofit2 plz help me how can i get it

Ответить
Professor Posh
Professor Posh - 31.07.2022 10:59

What do you do if the JSON response is an Object and not an Array?

Ответить
alzea arafat
alzea arafat - 29.07.2022 14:15

Very clear and thorough tutorial. Thanks for explaining the little details too!

Ответить
Albedo
Albedo - 25.07.2022 16:50

hi i implemented everything exactly the same as you did. but the text view doesn't update. I think it's because the onresponse method is not being called. help?

Ответить
Akash Kotla
Akash Kotla - 13.07.2022 08:28

sir, I am getting error
java.lang.NullPointerException
Help me to slove this..

Ответить
JEET SHAH
JEET SHAH - 23.06.2022 15:42

superb explanation..

Ответить
Ahmed elbehiry
Ahmed elbehiry - 08.06.2022 01:36

very useful,thank you

Ответить
Khang Đinh Thuận
Khang Đinh Thuận - 23.05.2022 16:49

This video helps me a lot. I really appreciate it. <3

Ответить
Boot Camp
Boot Camp - 14.05.2022 17:47

Hello sir can i get a reference for api calling (retrofit) and shared pref (kotlin)

Ответить
34fish Pisces
34fish Pisces - 11.05.2022 09:24

thank you very much!

Ответить
Gaurav Rathod
Gaurav Rathod - 04.05.2022 04:48

Very nice explanation at adequate pace.

Ответить
Neel Goti
Neel Goti - 26.04.2022 16:15

Nice video 💯 💯💯 working video 👍🏻👍🏻

Ответить
Airsoft-in-Box
Airsoft-in-Box - 18.04.2022 18:24

Hi thanks for video, it helped me somehow but I still getting this error. Could you help me? ERROR: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2

Ответить
Егор Лядский
Егор Лядский - 31.03.2022 15:06

индусы сила

Ответить
Lemniscate Unlimited
Lemniscate Unlimited - 28.03.2022 19:58

Please create a tutorial with filtering the data using an <EditText> and reshowing it in the recyclerview

Ответить
Juan Lara
Juan Lara - 18.03.2022 22:02

Great guide, pretty elegant done. You help me a lot to understand the use of Retrofit and solved a problem I had.

Ответить
Wanyoike Danny
Wanyoike Danny - 19.02.2022 11:53

THIS is good. but for me it is not working.I debugged and found out that the Enqueue method is not executed,it skips it ,I dont know why.may you help?

Ответить
Danny Wanyoike
Danny Wanyoike - 13.02.2022 11:31

Wow this is awesome 😎 keep on teaching

Ответить
IT Time
IT Time - 04.02.2022 22:23

Thanks video👍👍👍

Ответить
Sakshi Singhal
Sakshi Singhal - 02.02.2022 13:04

How to add internet permissions for a backend application (not an android one), I am getting connect timeout err.

Ответить
Oleh
Oleh - 27.01.2022 16:01

great explanation but doesnt work - doesnt change textview

Ответить