The app and code in the video are tested and perfectly working. However, I have seen that some of you are facing difficulties and getting some errors, so here is a beginners guide to debugging: 1) Error: Null object reference Solution: This always means you have given the wrong XML ID, just correct it 2) Error: User Credentials not sent to Firebase Solution: Check if you have added all dependencies else do the following: In Android Studio, go to Tools > Firebase. Click on it. A new tab will open. Click on Authentication > More Info > Email and Password Authentication Link. Another tab will open. Check if the first step shows connected to the database. If not, just click on it and you should be asked for Firebase credentials and on entering that, you will get connected :) 3) Error: App is crashing Solution: Check your logcat section present at the bottom of Android Studio, it will tell you where you have made the error or what caused the error. Just go to that line then and debug. 4) Error: App crashing in emulator: This happens because your emulator doesn't have the latest google play store services. Either update play store or just run it on normal phone Also, some things to note: 1) Every new user must have unique email ID 2) The password length must be more than 8 characters long 3) Internet must be ON Hope this helped everyone :)
I know why it's crashing. Professor just forgot to explain the thing why is the app crashing. It's because of "private FirebaseAuth firebaseAuth;" It's PRIVATE but professor just placed the "firebaseAuth = FirebaseAuth.getInstance();" inside on 1 method which is the "OnCreate" Method. But professor just used the FirebaseAuth at multiple methods. You need to make a "firebaseAuth = FirebaseAuth.getInstance();" at every method that FirebaseAuth is using. I hope it helped 😊
Hello Professor DK, Your videos & teaching methods are amazing. I completed Login App from 1 to till this video. After testing app from all possibly ways, I suddenly found one bug in your app. If you will click "Login" button without submitting either any Email ID or password, the app will crash. Please fix it. Thank You, Jimmy Trivedi
Everything is fine.... But one thing i am suffering from.. When ieft all field empty and press on log in button app gets crassed... Plz plz plz help me
hi sir, can i know how can we automatically save/update the new password that we reset in the database? this tutorial only shows how to reset password for authentication only but not to update the new password that has been reset to be stored in firebase. Can you please help me?
Thank you for the video buddy ! It works for me fine. But....., I cant see the changes in the database . Would you please tell how to update the database when certain changes happen ( like for instance , after password reset the changes should be done in the database as well right? )
Sir, I have an Company API, so how should i code such that I have all the features which you showed in all the previous videos Basically I need a login button, Forgot password and Logout button
Hello Sir, I am Nawaz, i have question about firebase user storage... please let me know how many user i can manage in per firebase account? please reply me as soon as possible...
Sir when I login the app its failed to login to the second activity , the other registration and forget password are run correctly pls help me login to find login fail
Sir, If i store the password in firebase database, then when i change the password using resetpassword, then password will changed, but in the database it shows the previous password. i want to update password when the user change their password using forget password.please give me the solutions..
An object in general (firebaseAuth) is used to access the implementation methods present in the main class (FirebaseAuth). But we can have many objects. So we can assign objects to an instance which has it own copy of variables and memory space. You can read more here: alfredjava.wordpress.com/2008/07/08/class-vs-object-vs-instance/
Sir, i have successfully reset my password. The firebase webpage says I can now login using my new password but whenever I do, I get the error firebaseAuthInvalidCredentialsException. The password is invalid or the user does not have a password. Please help. Thank you
Hello sir! I have reached at the 5th part of the tutorial and as i am running my app it directly opens the secondActivity and not the login page. So what should i do?
Think u have logged in to the app....so the next time you open the app it directly opens the Second Activity....think he explained it in the 3rd or 4th part regarding this..
sir when i write private Firebaseauth firebaseauth; its says its undefine of a type,can u tell why its showing error????? Iam using eclipse software tools.
Sir can you make tutorial on when i enter a data into firebase database it send me mail that your data is entered.... like a conformation email message
Since Firebase is an API, it isnt customisable to send you a mail for data entered using Firebase. However, you could write a script to send mail using Android SDKs :)
Nice video sir...Everything is fine but the reset mail is not coming to our gmail. But the toast message is showing the message "reset mail sent"..can you help sir!
dear bro! its good but if anyone know our email he can easily forget password and change password of our application so can u have any other solution tight security more... like some questions answers etc
Pass a query each time a user wants to change password and if username matches the database then you can send another query for change with the new password :)
Hello sir, thanks for your all videos I'm a beginner in android studio, i saw all videos of your channel, Sir can you personally help me to create an app as i want... If you know Hindi so please use Hindi language that help us more.
Professor DK Thanks for reply sir, i hope in future you will make video on google admob activity and how to use many banner in one screen and interstitial.
Thank you so much for this nice tutorials. sir I have done everything but one problem is if I try to click login button without any email and password I mean empty than it has close and reopen so plz sir can you help me........
Hi DK, firstly thanks for uploading the videos they're very helpful. Secondly the error that Aftab is referring to is due to there being no check for empty fields within the MainActivity file as there is in the PasswordActivity and RegistrationActivity files.
The error I am getting is this: java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.sendPasswordResetEmail(java.lang.String)' on a null object reference How do I resolve the issue? Thanks
Thank you for the video buddy ! It works for me fine. But....., I cant see the changes in the database . Would you please tell how to update the database when certain changes happen ( like for instance , after password reset the changes should be done in the database as well right? )
The app and code in the video are tested and perfectly working. However, I have seen that some of you are facing difficulties and getting some errors, so here is a beginners guide to debugging:
1) Error: Null object reference Solution: This always means you have given the wrong XML ID, just correct it
2) Error: User Credentials not sent to Firebase Solution: Check if you have added all dependencies else do the following:
In Android Studio, go to Tools > Firebase. Click on it. A new tab will open. Click on Authentication > More Info > Email and Password Authentication Link. Another tab will open. Check if the first step shows connected to the database. If not, just click on it and you should be asked for Firebase credentials and on entering that, you will get connected :)
3) Error: App is crashing Solution: Check your logcat section present at the bottom of Android Studio, it will tell you where you have made the error or what caused the error. Just go to that line then and debug.
4) Error: App crashing in emulator: This happens because your emulator doesn't have the latest google play store services. Either update play store or just run it on normal phone
Also, some things to note:
1) Every new user must have unique email ID
2) The password length must be more than 8 characters long
3) Internet must be ON
Hope this helped everyone :)
The app is crashing how do I know why please?
I know why it's crashing. Professor just forgot to explain the thing why is the app crashing.
It's because of "private FirebaseAuth firebaseAuth;"
It's PRIVATE but professor just placed the "firebaseAuth = FirebaseAuth.getInstance();" inside on 1 method which is the "OnCreate" Method. But professor just used the FirebaseAuth at multiple methods. You need to make a "firebaseAuth = FirebaseAuth.getInstance();" at every method that FirebaseAuth is using. I hope it helped 😊
You're breathtaking. You're so good. Thank you for posting tutorials like this.
Hello Professor DK,
Your videos & teaching methods are amazing. I completed Login App from 1 to till this video. After testing app from all possibly ways, I suddenly found one bug in your app. If you will click "Login" button without submitting either any Email ID or password, the app will crash.
Please fix it.
Thank You,
Jimmy Trivedi
Wow! Great! Thanks for the help!
It is showing the link is expired or already used
Everything is fine.... But one thing i am suffering from.. When ieft all field empty and press on log in button app gets crassed... Plz plz plz help me
It worked ,thats it ,bhai ne bol diya
hi sir, can i know how can we automatically save/update the new password that we reset in the database? this tutorial only shows how to reset password for authentication only but not to update the new password that has been reset to be stored in firebase. Can you please help me?
unable to reset password using the link we are getting
Good and clear tutorial! Thank you!
Sir, I could you please make a video on how to use API's? I always obtain the API key but dont know how to proceed from there. Thanks
Thumbs up... great tutorials always :)
Tried it, Working smoothly, thank-you for uploading such videos.
Sir can you please upload video on how to implement on boarding screens in app.
+Aswin Pradeep Glad you liked it. After the series maybe I'll cover some random topics. So maybe then I'll do that. Stay tuned, let's see :)
Thank you for the video buddy ! It works for me fine.
But....., I cant see the changes in the database .
Would you please tell how to update the database when certain changes happen ( like for instance , after password reset the changes should be done in the database as well right? )
sir how to add two onclicklistener for same button,
please help
bro why u are using if else for checking user has entered details or not,in case you can simply use try catch block
Your videos are bomb Bro. Thanks heapsssssss
Hello
Can you please send community link because the link in description says invalid
Sir, I have an Company API, so how should i code such that I have all the features which you showed in all the previous videos
Basically I need a login button, Forgot password and Logout button
Is it only works with google accounts?
Sir can u plz make videos on server wamp and database all operations
Hello Sir,
I am Nawaz, i have question about firebase user storage...
please let me know how many user i can manage in per firebase account?
please reply me as soon as possible...
Please can you help me how to open may Appnana application? I forgot may password
what if i don't have database on Firebase ....?? and have database on some other platform..!!!
Sir when I login the app its failed to login to the second activity , the other registration and forget password are run correctly pls help me login to find login fail
Same here!!!!!!!!!!!!!!!!!!!!!!!!!!
Sir, If i store the password in firebase database, then when i change the password using resetpassword, then password will changed, but in the database it shows the previous password. i want to update password when the user change their password using forget password.please give me the solutions..
Sir, what is the difference between FirebaseAuth obhect and FirebaseAuth instance?
An object in general (firebaseAuth) is used to access the implementation methods present in the main class (FirebaseAuth). But we can have many objects. So we can assign objects to an instance which has it own copy of variables and memory space. You can read more here: alfredjava.wordpress.com/2008/07/08/class-vs-object-vs-instance/
how can we add a attendance application for teachers?
Sir, i have successfully reset my password. The firebase webpage says I can now login using my new password but whenever I do, I get the error firebaseAuthInvalidCredentialsException. The password is invalid or the user does not have a password. Please help. Thank you
Hello sir! I have reached at the 5th part of the tutorial and as i am running my app it directly opens the secondActivity and not the login page. So what should i do?
Think u have logged in to the app....so the next time you open the app it directly opens the Second Activity....think he explained it in the 3rd or 4th part regarding this..
Can we reset password Using Phone Number?
sir when i write
private Firebaseauth firebaseauth;
its says its undefine of a type,can u tell why its showing error?????
Iam using eclipse software tools.
FirebaseAuth, the A is capital
Sir can you make tutorial on when i enter a data into firebase database it send me mail that your data is entered.... like a conformation email message
Since Firebase is an API, it isnt customisable to send you a mail for data entered using Firebase. However, you could write a script to send mail using Android SDKs :)
Part 5?
Nice video sir...Everything is fine but the reset mail is not coming to our gmail. But the toast message is showing the message "reset mail sent"..can you help sir!
Check if you defined everything correctly in the email verification template on the website :)
Professor DK tq... It worked but lately. Time taken but now working
How to implement forget password using registered phone number in firebase
Greetings Professor
please my ALT + 0 is not working and I put my numlock off.
You can right click anywhere in the editor and it will show you the options menu :)
can u make a video on storing and retrieving data from firebase
+Shakib Khan Yes, that's the next video, will be up this weekend :)
Thanks Sir for this Video :)
dear bro! its good but if anyone know our email he can easily forget password and change password of our application so can u have any other solution tight security more... like some questions answers etc
The change password can only be done in your email. If your email is compromised then pretty much every other account can be hacked.
prof I am using active android as my database ... how to I make a reset password for my app
Pass a query each time a user wants to change password and if username matches the database then you can send another query for change with the new password :)
Hello sir, thanks for your all videos I'm a beginner in android studio, i saw all videos of your channel,
Sir can you personally help me to create an app as i want...
If you know Hindi so please use Hindi language that help us more.
+Rajeev Karaiya Glad you liked it. Right now I'm busy with some projects, so I can't do any freelance work. My Hindi is not that great :)
Professor DK
Thanks for reply sir, i hope in future you will make video on google admob activity and how to use many banner in one screen and interstitial.
App keeps stoping pls help
Thank you so much for this nice tutorials. sir I have done everything but one problem is if I try to click login button without any email and password I mean empty than it has close and reopen so plz sir can you help me........
+Aftab Mahmud Babu Check the code link I have given in the description. Have you typed the if else condition to check if the fields are empty or not?
Hi DK, firstly thanks for uploading the videos they're very helpful. Secondly the error that Aftab is referring to is due to there being no check for empty fields within the MainActivity file as there is in the PasswordActivity and RegistrationActivity files.
Sir can u please make a video on making apps like taskbucks,appbounty or any earning app..please
+The OldGamer GV I'll make a video on how you can embed ads in your video and earn money from it. Hope that will help you :)
Please sir make a video of storing information of authenticated user during registeration on firebase
+Shakib Khan Will cover that in part 7 :)
Professor DK thanks sir actually i am having a project of tyit i have selected android for that
The app keeps crashing at this point i.e. when I click the Reset Password button. Can anyone help me out?
The error I am getting is this:
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.auth.FirebaseAuth.sendPasswordResetEmail(java.lang.String)' on a null object reference
How do I resolve the issue?
Thanks
OK....I got it....I forgot to instantiate the variable firebaseAuth!!!
Wow....very easy
+Vasant Vyas Glad you liked it. Happy learning :)
It works like a charm sir.
But instead of displaying "Error in sending password reset", I have replaced it with task.getException().getMessage()
Sir, please make a video on wifi
+S Prakash Okay will do :)
hello everyone
Hey
Thank you for the video buddy ! It works for me fine.
But....., I cant see the changes in the database .
Would you please tell how to update the database when certain changes happen ( like for instance , after password reset the changes should be done in the database as well right? )