Retrofit - Send a simple GET Request | Android Studio Tutorial

Retrofit - Send a simple GET Request | Android Studio Tutorial

Stevdza-San

3 года назад

96,860 Просмотров

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


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

@hobynist
@hobynist - 19.11.2023 23:42

Hi! Thanks for the video. That maybe simple in Jetpack Compose but compare that to other libraries (for example with React Native) i´ve used that´s not simple at all 😄

Ответить
@solomonayodeleo
@solomonayodeleo - 07.08.2023 11:50

Its 2023 and this tutorial is still serving well❤

Ответить
@user-cm8yx7xd7f
@user-cm8yx7xd7f - 06.06.2023 03:35

Why to use !! <-- this isnt a bad practice ?

Ответить
@user-cm8yx7xd7f
@user-cm8yx7xd7f - 06.06.2023 00:03

The way you provide the dependencies through a pattern is it called MVC or MVP ?

Ответить
@lixoten344
@lixoten344 - 06.03.2023 08:09

Time to revisit this tutorial, maybe time for a redo... MutableLiveData is kinda YESTERDAY
and maybe compose instead of XML?

Ответить
@zakwanibrahim7283
@zakwanibrahim7283 - 11.12.2022 17:32

Hello ... is this architecture is MVVM?

Ответить
@yasinozkurt2296
@yasinozkurt2296 - 03.10.2022 23:59

Whats this mess? I mean why should we code this much to make a simple request?? Why cant we just call a function like request.get("url")?? I am fed up with android and its interfaces, templates, frames...

Ответить
@prasannadeshpande4435
@prasannadeshpande4435 - 12.09.2022 07:55

You make really great videos.

Ответить
@OCEH6
@OCEH6 - 02.08.2022 23:50

Awesome! Thank you a lot!

Ответить
@TheMrAntosiek
@TheMrAntosiek - 29.07.2022 19:06

class MainViewModelFactory(private val repository: Repository):ViewModelProvider.Factory {
} throws me an error "Inheritance from an interface with '@JvmDefault' members is only allowed with -Xjvm-default option" what should i do?

Ответить
@krix5623
@krix5623 - 19.07.2022 10:11

It's crazy how you need 5 files for a simple get request, which you can do in 10 lines in JavaScript

Ответить
@Samson.CodeArchive
@Samson.CodeArchive - 20.06.2022 17:01

thank you for this content

Ответить
@federicomoreiratejera4478
@federicomoreiratejera4478 - 17.06.2022 05:17

Your videos are very good and very useful. I would love for you to show examples of delete and update with retrofit, it would be very helpful. Thank you so much

Ответить
@alexredison
@alexredison - 29.05.2022 23:44

For anyone getting error message "Class 'ViewModelFactory' is not abstract and does not implement abstract member", remove nullability sign (?) in MainViewModelFactory.kt. Like this -
override fun <T : ViewModel> create(modelClass: Class<T>): T {

Ответить
@muhohojeremy4861
@muhohojeremy4861 - 26.04.2022 21:12

How can retrofit get api callbacks for example in my case I am doing back end validation with laravel

"email": [
"The email field is required."
],
"password": [
"The password field is required."
],
"device_name": [
"The device name field is required."
]


How do I consume this with retrofit to show the relevant error messages.

Ответить
@henrygalvan9333
@henrygalvan9333 - 04.04.2022 14:56

@Stevdza-San I am currently using jetpack compose, does this mean I do not longer need view model factory ?

Ответить
@user-qb6ct2im7z
@user-qb6ct2im7z - 22.03.2022 09:01

how did you access the TextView directly in MainActivity?

Ответить
@limo1175
@limo1175 - 19.03.2022 06:14

thank ,help me a lot

Ответить
@Spham99
@Spham99 - 16.03.2022 22:42

Could you provide the Github link to this project?

Ответить
@Hrit
@Hrit - 11.03.2022 21:04

What a Solid Explanation!

Ответить
@salvadorduenas4183
@salvadorduenas4183 - 09.03.2022 20:26

Thank your code is very easy

Ответить
@stevenalexander6262
@stevenalexander6262 - 07.03.2022 09:24

amazing video but so confused on how the folder structure works, or how they're all connected to each other. There's also no reason given for all these folders, classes and instances made, literal copy and paste. Like why are you bouncing a method call 5 times? I don't even know where the code ends up to at that point

Ответить
@emanuelalvarez2908
@emanuelalvarez2908 - 27.12.2021 06:24

This was incredibly useful. Thank you.

Ответить
@Jetbalance4
@Jetbalance4 - 15.12.2021 09:55

Hi! Help me, please! How should I catch the "no internet connection" error?

Ответить
@klekaelly
@klekaelly - 05.12.2021 11:40

So I was using this as a guide for interfacing with a different API. Does my data class need to represent the API's response exactly?

In other words, can I leave out a few data points that I don't care about that is being returned from the API?

Ответить
@ubedkhorajiya4144
@ubedkhorajiya4144 - 29.11.2021 14:20

Mutable live data trigger so many time i got wrong response how can fix

Ответить
@ubedkhorajiya4144
@ubedkhorajiya4144 - 29.11.2021 14:19

Mutable live data trigger so many time i got wrong response how can fix

Ответить
@ubedkhorajiya4144
@ubedkhorajiya4144 - 29.11.2021 14:19

Mutable live data trigger so many time i got wrong response how can fix

Ответить
@ubedkhorajiya4144
@ubedkhorajiya4144 - 27.11.2021 16:13

Mutable live data trigger so many time i got wrong response how can fix

Ответить
@ubedkhorajiya4144
@ubedkhorajiya4144 - 27.11.2021 16:12

Thanks!

Ответить
@androidmillennium9266
@androidmillennium9266 - 20.11.2021 19:14

Thanks a lot

Ответить
@dimensions7262
@dimensions7262 - 15.11.2021 02:30

Thanks. It was a really understandable training video!

Ответить
@fifty6737
@fifty6737 - 06.11.2021 12:25

all i learned is that kotlin is horrible language, you just wasted a fucking 13 minutes going all over the place to implement a single get request, holy shit, it needs to be a simpler way to do rest api calls than this bullshit

Ответить
@michaelchristensen8350
@michaelchristensen8350 - 28.10.2021 09:07

Hi I am a beginner. I like your content. I also bought some of your video on Udemy.
But I really really wish you would slow down the pace.

It is very hard to follow, you are going to fast man. Slow down, and explain things a bit more detailed, and your content would be even better :-)

Ответить
@jankastbjerg4017
@jankastbjerg4017 - 21.10.2021 13:41

awesome tutorial, but holy hell you talk and type fast xD

Ответить
@joegoosebass3958
@joegoosebass3958 - 25.09.2021 19:25

This is out of date

Ответить
@pradeep9222
@pradeep9222 - 16.09.2021 21:33

you make android intern's life easy and smooth, thank you again

Ответить
@kalibra2121
@kalibra2121 - 01.09.2021 00:03

man...seriously... your content is amazing :| exactly on point, so simple explained.. so clean :) thank you! we really appreciate your work

Ответить
@tahermadras5371
@tahermadras5371 - 25.08.2021 16:19

how to get multiple posts

Ответить
@scottbiggs8894
@scottbiggs8894 - 12.08.2021 04:35

Very informative, but so fast!!! I had to pause the video a dozens of times just to blink.

Ответить
@aranyaprakash5537
@aranyaprakash5537 - 28.06.2021 19:27

Damn this is a coding style I can aspire for

Ответить
@angelmauriciorivas6160
@angelmauriciorivas6160 - 11.06.2021 05:29

Muchas Gracias Sensei

Ответить
@ronneyismael605
@ronneyismael605 - 10.06.2021 11:14

Please make videos on restful api. how we are making APIs.

Ответить
@marcinbiaecki9731
@marcinbiaecki9731 - 02.06.2021 20:50

Thank you! :)

Ответить
@andreaf4861
@andreaf4861 - 01.06.2021 06:27

thanks for the video, helped a lot man

Ответить
@bakjoul
@bakjoul - 27.05.2021 20:34

This tutorial is very well done. Too bad i didn't understand much. This seems so complicated for something supposed to be simple. But it works great !

Ответить
@alejandromorales1324
@alejandromorales1324 - 25.05.2021 09:10

Hey bro when executing the app it closes automatically and does not consume the api, but does not show any error

Ответить