Тёмный
No video :(

#11 Android Login/Signup with MVVM - Handling API Errors 

Simplified Coding
Подписаться 118 тыс.
Просмотров 12 тыс.
50% 1

Whenever we hit an API, it processes something on the backend and that process may lead to some error cases as well. So whenever we are working with APIs, it is not necessary that everytime we will get success from the API, we may get errors like network problem, api errors and other errors as well. And handling the errors in our app is very important.
So in this video we will learn Retrofit + Coroutines Error Handling. We will handle all errors, and if you are looking "How to handle error response in retrofit android", then it is the video for you.
If you are having trouble navigating between lessons then check this link; all lessons are arranged in chronological order here.
👉bit.ly/3ukGu3G
To check creating an Authentication RESTful API go to the following link
👉 • #1 Building Login API ...
If you want to deploy the RESTful APIs to your own shared hosting go to this link
👉 • Deploying Laravel Proj...
To get the source code of this Android Login/Signup with MVVM go to the following link.
👉 www.simplified...
If you want to use My API, then here are the details:
Auth URL: simplifiedcodi... or /signup
User URL: simplifiedcodi...
Here is a user that you can use for Login if you do not want to make the SignUp part on your own.
email: probelalkhan1@gmail.com
password: 12345678
If you love my content please SHARE my courses to your friends. You can share this course, to your Facebook, WhatsApp etc.
For more contents related to Software Development visit my website.
👉 www.simplified...
You can SUPPORT me if you want
👉 Patreon: / belalkhan
👉 UPI (India Only): probelalkhan@okaxis
👉 PayTM (India Only): +917549161079
👉 PayPal: www.paypal.me/...
You can also check some of my other courses from these links
👉 Android Game Development Tutorial: bit.ly/38JmltC
👉 Retrofit Android Tutorial: bit.ly/2DEwAl1
👉 Android RecyclerView Tutorial: bit.ly/2TqVjPz
👉 Android Room Tutorial: bit.ly/2PfQHeN
👉 Firebase Auth Tutorial: bit.ly/2WUGhEo
👉 Android Notification Tutorial: bit.ly/2Sc6jQl
👉 Building a Complete Wallpaper App: bit.ly/30UN8zV
👉 Build Tic Tac Toe in Android: bit.ly/30goxW0
Lastly if you want to connect with me, you can follow me on my social profiles
Facebook: / simplifiedco. .
Instagram: / probelalkhan
Twitter: / probelalkhan
❤️❤️ Thank You All for the Love and Support ❤️❤️
#AndroidUserLogin
#AndroidLogin

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@ankitamoundekar2221
@ankitamoundekar2221 3 года назад
is this signup API working or not? because when I am testing this API on postman it's not giving me any response
@AmodKumar-fp9hi
@AmodKumar-fp9hi 3 года назад
Great bro I am waiting from long time for this topic video
@SimplifiedCoding
@SimplifiedCoding 3 года назад
❤️❤️
@bhaskarrajaryal6678
@bhaskarrajaryal6678 3 года назад
Lovely video.. Can you please let me know how I can call handleApiError from Activity since its using Fragment here?
@NimaAzh
@NimaAzh 3 года назад
call it directly. it is in util file but it is not member of any class. this function is written in file.
@rajusah3710
@rajusah3710 3 года назад
Please add DI in this project sir ASAP
@swetasuman98
@swetasuman98 3 года назад
It's really very much helpful.
@SimplifiedCoding
@SimplifiedCoding 3 года назад
❤️❤️
@NimaAzh
@NimaAzh 3 года назад
excellent job from belal khan ! some topics like this this are always need more attention. these generic functions that are called in whole app pages are hard for beginners. include many things like generic functions , sealed class , ... thanks a lot .if you know anything about designing or customizing view class tell us. it is a topic that is not found a lot.
@timothyademola8892
@timothyademola8892 3 года назад
Great video, thanks for this, can I get an explanation on refresh token handling using authenticator in this case
@SimplifiedCoding
@SimplifiedCoding 3 года назад
I have updated this project with Refresh Token and authenticator Check here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QfnmLx68jcI.html Soon I will create a step by step explanation video as well.
@TheKamble
@TheKamble 3 года назад
Is it possible to get some episodes showing fetching lists of data and uploading to the list also? That would go a long way sir. As always, we love you
@SimplifiedCoding
@SimplifiedCoding 3 года назад
Already covered fetching list so many times.
@TheKamble
@TheKamble 3 года назад
@@SimplifiedCoding oh, ok so there's no changes to how you did it in the mvvm tutorial?
@SimplifiedCoding
@SimplifiedCoding 3 года назад
No just hit the api in repository call that function in view model and observe result in fragment.
@TheKamble
@TheKamble 3 года назад
@@SimplifiedCoding Done and done. Thank you so much sir.
@ShakilAhmedShaj
@ShakilAhmedShaj 3 года назад
great video as always, thanks a lot ❤️❤️
@SimplifiedCoding
@SimplifiedCoding 3 года назад
Thanks ❤️
@d_3_a_d_p_o_o_l
@d_3_a_d_p_o_o_l 2 года назад
Error model: { "error": { "message": "Username is already taken." "code": 422 } } I want to show api response.errorBody(). I have written sign up api and it returns errors like in error model message property could be any error like "email is already taken", "email is invalid", etc . How to parse api response error body with custom data class, if response is not successful. I'm using retrofit for api calls. Please help sir.
@ilhamaliyudin4779
@ilhamaliyudin4779 3 года назад
hallo masterrr, how to handle SocketTimeOut when user hasnt internet connection??
@SimplifiedCoding
@SimplifiedCoding 3 года назад
No Internet is already handled here.
@mohoshinali6607
@mohoshinali6607 3 года назад
First view 😍
@SimplifiedCoding
@SimplifiedCoding 3 года назад
❤️❤️
@krishnamandava9919
@krishnamandava9919 3 года назад
After fetching and displaying user information when orientation changes api request was sending again to fetch tha data. Is there is any solution other than room to fix this problem
@SimplifiedCoding
@SimplifiedCoding 3 года назад
It should not happen as we are already using ViewModel. I will check and tell you.
@krishnamandava9919
@krishnamandava9919 3 года назад
@@SimplifiedCoding Okay thanks. I'm waiting for the answer
@Nikhil-bo5zt
@Nikhil-bo5zt 2 года назад
Request to you sir .can you please upload a paging fetching in recycler view using this same project setup..please reply...
@surflaweb
@surflaweb 3 года назад
Hi bro! I updated my Api Rest. Before I was sendig a server message: if(!user) return res.send({message: "wrong email"}) now I updated it responding wiht a 401 status code if(!user) return res.status(401).send('wrong email') I did it using node.js and express.. Ok bro I update and the App works but how we can get the server message and show it instead of do it: requireView().snackbar("You've entered incorrect email or password") ? I want to show the server message instead of the snackbar message.. ¿Can you update it? thanks so much.
@mohammadnasrullah6681
@mohammadnasrullah6681 3 года назад
hello bhai after login my app not changing activity i followed your steps and checked your git too. help me please. Thanks
@SimplifiedCoding
@SimplifiedCoding 3 года назад
clone my repository and try, and then compare it with your code.
@mohammadnasrullah6681
@mohammadnasrullah6681 3 года назад
okay
@05Sambist
@05Sambist 3 года назад
Do you show how to register a new user?
@SimplifiedCoding
@SimplifiedCoding 3 года назад
If you want to use My API, then here are the details: Auth URL: simplifiedcoding.tech/mywebapp/public/api/auth/login or /signup User URL: simplifiedcoding.tech/mywebapp/public/api/user Here is a user that you can use for Login if you do not want to make the SignUp part on your own. email: probelalkhan1@gmail.com password: 12345678 Thank You
@Lukmanhakim-hn2bo
@Lukmanhakim-hn2bo 3 года назад
Nice video sir, please make some videos that is talking about how to implement clean architecture to our project. Thanks ;)
@SimplifiedCoding
@SimplifiedCoding 3 года назад
Okay I will try.
@_sharmaji.dev_
@_sharmaji.dev_ 3 года назад
✨✨
@wavedass4655
@wavedass4655 3 года назад
camerax tutorial for java
@farheenjaved7133
@farheenjaved7133 3 года назад
Hello ham Fahad hai
@pyaesonehan19
@pyaesonehan19 3 месяца назад
Далее
#12 Android Login/Signup with MVVM - User Logout
14:21
Retrofit Tutorial - Simple Error Handling
14:41
Просмотров 19 тыс.
#3 Android Login/Signup with MVVM - Retrofit
10:02
Просмотров 30 тыс.
#9 Android Login/Signup with MVVM - User Login
15:16
Просмотров 11 тыс.
Cleaner Code With Use Cases - The Full Guide
14:16
Просмотров 51 тыс.
Android Unit Test Room Database
12:44
Просмотров 19 тыс.