Login with Retrofit using MVVM Java | Step By Step Explanation

preview_player
Показать описание
#Android #Java #coding

In this video i will show you how to implement remote login with retrofit using MVVM design pattern. View will call view model to initiate the login, view model will then pass login credentials to repository where login request will be made using retrofit.

▬ Gradle Dependencies ▬▬▬▬▬▬▬▬▬▬
// Retrofit

▬ Code ▬▬▬▬▬▬▬▬▬▬

▬ Related ▬▬▬▬▬▬▬▬▬▬
🎥 Previous Video: MVVM | Model View View-Model Simple Real App Android
Next Video: Camera X in Java | Image Capture, Video Capture, Image Analysis
🎥 All videos: Android Java Tutorials

▬ Contents ▬▬▬▬▬▬▬▬▬▬
Contributions are welcomed.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▬ Have a video request ? ▬▬▬▬▬▬▬▬▬▬
Any thoughts or suggestions are greatly appreciated. Also, you can request a video upon automation.
Leave them in the comments below.

▬ More Videos On Android ?▬▬▬▬▬▬▬▬▬▬
Make sure to hit like and subscribe button to learn more

SUBSCRIBE for more tutorials on android application development and then automating the apps for CI/CD

Рекомендации по теме
Комментарии
Автор

thanks for this video, just what i was looking for 😍🤩💖

karlahernandezDupree
Автор

This video helps me a lot! Thank you so much!

carlosbravo
Автор

Nice one, it saved me lots of confusion

codewithpetrus
Автор

Great Example! Sample and easy to understand!

andremenegussi
Автор

I have a simple doubt Isn't MVVM can be achieved either by data-binding or RxJava? If I'm not wrong, I would like to know if Rxjava is used over here?

pragyanshreedas
Автор

Hello, I like this video, now my problem is I have another version of dashboard (also in MVVM) how do I link this to without getting screen.

Login fragment and sign up fragment are on one activity and my dashboard contains 4 fragments.

Is it possible two have two navigation graphs?

I'm new to learning android studio. My explanation might not be clear. Thanks.

obedoduoli
Автор

Thanks for this video! from where the video ends, will you need to check the tvLoginResult to know if it is successful or not(in the view), to go to the next page? or how will you go about it?. Also if you want to use SharedPreference to keep the user logged in, how will you implement it in MVVM?

aboutiti
Автор

to be perfect you had to create the packages

devnoob
Автор

saya coba panggil token di loginresponse kok null ya ?

fadlinmajid
Автор

Android on Java in 2022? You seem to have slept for several years. No one will look for Java examples now. Kotlin not just a language but coroutines for example.

dekus