Please, change: 1. reference.child(name).setValue(helperClass); to reference.child(username).setValue(helperClass); in SignupActivity at 16:00 2. if(!Objects.equals(passwordFromDB, userPassword)) to if (passwordFromDB.equals(userPassword)) in LoginActivity at 21:27 Refer updated source code: androidknowledge.com/login-signup-android-studio-firebase-realtime/
hii i try this app but data is not save in firebase i written same code also app launching but data is not save in firebase so plese fix it this problem
Can I ask? when Im logging in the password does not validate and just go login even without matching the registered password. How I fix this to validate first before login
there is a problem with your sign up code as u can keep the spaces blank and it would still say you have signed up successfully and more over it completely wipes out the firebase database and all the users stored in it so any solution on that
Hi I'm getting a User does not exist error although my code matches yours in the given updated source code. My guess is the snapshot in the login class is returning null. What could be the solution? thanks
It will but there are few things to keep in mind, check the below official documentation: firebase.google.com/docs/database/android/offline-capabilities#section-offline-queries
Em um vídeo anterior seu deixei uma mensagem a respeito de algo similar a este tutorial, porem aqui voce utiliza somente uma pagina de cadastro, no meu caso seriam 4 paginas de cadastro onde cada pagina faz referencia a um tipo de dado (Dados Pessoais, Dados Bancários, Dados de Veiculo. etc...). Como no seu vídeo é somente uma pagina, ainda não ficou claro de como eu poderia fazer isto em varia paginas trazendo todos os dados armazenando os no "HelperClass", para depois subir todos de uma vez para o RealTime Database.
hello friend, thank you for the source code, but in the process of coding I have a problem that when registering for an account, select the Sign Up button it shows you sign up succesfull but on the realtime database it doesn't show the name just posted Sign like yours, please tell me how to fix it, thanks a lot
Yes, I've encountered same problems too and this is because firebase is unable to read your model class completely, which is due to access modifiers while instantiating the field variables. Also, it'll never show the related error in logcat.. When creating your model class, you need to make all your fields public so that it can be accessible by firebase and you need to give it a property name see example below; class HelperClass { @PropertyName("name") public String name; @PropertyName("email") public String email; @PropertyName("username") public String username; @PropertyName("password") public String password; public HelperClass(String name, String email, String username, String password) { this.name=name; this.email=email; this.username=username; this.password=password; } } You can also use hashmap to store them like this and it'll fix same problem Map helperClass = new HashMap(); helperClass.put("name",nameField.getText().toString().trim()); helperClass.put("email",emailField.getText().toString().trim()); helperClass.put("username",usernameField.getText().toString().trim()); helperClass.put("password", passwordField.getText().toString()); call the setValue(helperClass);
Thank you for this informative video but actually I am getting one error after running the code , " Execution failed for task ':app:mapDebugSourceSetPaths'. " Please help me how to solve it.
Hello thanks for this tutorial, but I still get errors in gradle like: Could not create parent directory for lock file. I already installed a newer version of android studio but still I can't get the app to run. Please help :(
Yes, that's because you're not running android studio as administrator. Therefore, permission is denied to create parent directory. Although, i fixed mine by copying the java folder which contains the JDK from program files to users/user/myfolder then in android studio settings for build/deployment for gradle, i selected this path -> users/user/myfolder/java for java home then sync
I noticed that you have another video that's also about Login and Sign Up in Firebase. Is it different from what you taught here, and if it is, what is the difference? Love the theme of your videos btw I love purple and white combo too!!
Thank you! 💜 In this video, we have used realtime database and in the previous video we have used authentication for login signup. I hope, it's clear :-)
@@android_knowledge the coding for the realtime database and authentication can be in the same java class or not? I'm using authentication to verified the user through email..but how do I save the same email and username in the realtime database..can you help me with this?
Nice video! 👏🏼 Im facing an error and when i run the app, it cant launch the signup activity. Error is for LoginActivity and says "The activity must be exported or contain an intent-filter". I would appreciate it if you help me. Thank you!
Thanks for the response 😊 Now its working, but i have another problem. When i signup its fine and all data get in firebase, but when i go to login and add the correct username and password it says tha the user doesn't exist. Can you help me please
I changed the code with the code that Android Knowledge pinned in the comments but it didnt work. So i restart my laptop and now it's fine! Try it and search in your code and check if you miss something.
hi..i've done all the things based on the video and the corrections also. everything runs perfectly but when i input my data in the sign up page, the data won't load in firebase. so after i sign up it the toast said "sign up sucess" but when i try to login it said "the username does not exist". the inputs wont save in the firebase
Hi, I followed the video and the user account is registered but it doesn't move to the Home page due to missing users. How do I fix it? Or was there something I missed?
Yeah bhai plz help kar tu dekh maine subscribe bhi kiya hai pls update aur deletion bhi bata de plz bhai jaise hai mera tu thoda help karde jaldi video nikal bhej na bhai plz
Please, change:
1. reference.child(name).setValue(helperClass); to reference.child(username).setValue(helperClass); in SignupActivity at 16:00
2. if(!Objects.equals(passwordFromDB, userPassword)) to if (passwordFromDB.equals(userPassword)) in LoginActivity at 21:27
Refer updated source code:
androidknowledge.com/login-signup-android-studio-firebase-realtime/
Hi there are many problem, first when symbol is used in user name app crashes and if you don't input anything whole data base delets
I also have same problem here
Not working
bro is literally living legend
Hi am facing an error ... when logging in it gets stuck on the login page. Also the account i have created does not reflect on the database
Hello, can you do a video on how to use firebase authentication and realtime database at the sametime
hii
i try this app but data is not save in firebase
i written same code also app launching but data is not save in firebase so plese fix it this problem
Hello, do you have videos about a complete admin login using firebase & java?
Can I ask? when Im logging in the password does not validate and just go login even without matching the registered password. How I fix this to validate first before login
can you have tutorial fetching the data from a specific user after register then get in and display on the main activity after loging in. thanks a lot
Here it is, enjoy:
ruclips.net/video/mEfW5vFa0Us/видео.html
Thanks a lot, I will share this video for all of my friends that need it and ask them to subscribe on your yt channel because it's so helpful
there is a problem with your sign up code as u can keep the spaces blank and it would still say you have signed up successfully and more over it completely wipes out the firebase database and all the users stored in it so any solution on that
Excellent!....It woks fab.🤞
I am facing app crash. I have written the whole code an implemented accordingly but now i am running the app and it is crashing please help
Hi I'm getting a User does not exist error although my code matches yours in the given updated source code. My guess is the snapshot in the login class is returning null. What could be the solution? thanks
Hi sir can you make video for shopping cart(add to cart) in android java using firebase🙏🙏
Thanks for this video, it helps my thesis.
By the way , will this actually work once i have the app on my phone ? not an emulator.
Yes, the app has run perfectly on my phone :-)
Outstanding topic💥
Thank you! 💜
hello i have followed every step ,but when i run it shows the same home page,please tell a solution
Thank you for making this topic video😊. Could you please create some more videos related to kotlin?
Yes, sure :-)
Keep checking our android kotlin playlist:
ruclips.net/p/PLQ_Ai1O7sMV2_qzi0ra-eL4EX-vN3W2QW
Creativity++ 😍
hello
do have a login and registration for admin panel video tutorials
thanks
I hope you include the gender selection for the signup activity, I had confusion about how to store gender data in real-time database
What's is the architecture are you using in this project?
Sir please make video On login nad singuo with mysql .. please please and also crud system
Okay, will give it a try :-)
Te quiero eres el mejor es el único vídeo que funciona
Would this still work even with no internet,?
It will but there are few things to keep in mind, check the below official documentation:
firebase.google.com/docs/database/android/offline-capabilities#section-offline-queries
Em um vídeo anterior seu deixei uma mensagem a respeito de algo similar a este tutorial, porem aqui voce utiliza somente uma pagina de cadastro, no meu caso seriam 4 paginas de cadastro onde cada pagina faz referencia a um tipo de dado (Dados Pessoais, Dados Bancários, Dados de Veiculo. etc...). Como no seu vídeo é somente uma pagina, ainda não ficou claro de como eu poderia fazer isto em varia paginas trazendo todos os dados armazenando os no "HelperClass", para depois subir todos de uma vez para o RealTime Database.
hello friend, thank you for the source code, but in the process of coding I have a problem that when registering for an account, select the Sign Up button it shows you sign up succesfull but on the realtime database it doesn't show the name just posted Sign like yours, please tell me how to fix it, thanks a lot
Is there any error present in logcat?
@@android_knowledge No any weird errors in logcat, only 1 warning handleWindowVisibility: no operation for token android.os.BinderProxy@c830c49
Yes, I've encountered same problems too and this is because firebase is unable to read your model class completely, which is due to access modifiers while instantiating the field variables. Also, it'll never show the related error in logcat..
When creating your model class, you need to make all your fields public so that it can be accessible by firebase and you need to give it a property name see example below;
class HelperClass {
@PropertyName("name")
public String name;
@PropertyName("email")
public String email;
@PropertyName("username")
public String username;
@PropertyName("password")
public String password;
public HelperClass(String name, String email, String username, String password) {
this.name=name;
this.email=email;
this.username=username;
this.password=password;
}
}
You can also use hashmap to store them like this and it'll fix same problem
Map helperClass = new HashMap();
helperClass.put("name",nameField.getText().toString().trim());
helperClass.put("email",emailField.getText().toString().trim());
helperClass.put("username",usernameField.getText().toString().trim());
helperClass.put("password", passwordField.getText().toString());
call the setValue(helperClass);
@@chisomemmanuel6160 i've follow your 2 methods, and nothing seems to work, is there any other way i can try? thanks in advance.
hello i have a question, did you connect the firebase authentication SDK? because im facing an error now and its not inserting a data to a firebase
No, I have connected firebase realtime database.
Thank You for Sharing such a useful tutorial.
:-)
Thank you for this informative video but actually I am getting one error after running the code , " Execution failed for task ':app:mapDebugSourceSetPaths'. " Please help me how to solve it.
The below link might help you:
stackoverflow.com/questions/72224454/execution-failed-for-task-appmapdebugsourcesetpaths-error-while-evaluatin
Summary:
Update the google gms plugin in gradle build :-)
@@android_knowledge Thank you for the suggestion, now it's working fine
Grid and build error is coming please solution
Please can you add Shared Preferences as well in this work Kindly.....?
Hello thanks for this tutorial, but I still get errors in gradle like: Could not create parent directory for lock file. I already installed a newer version of android studio but still I can't get the app to run. Please help :(
Yes, that's because you're not running android studio as administrator. Therefore, permission is denied to create parent directory. Although, i fixed mine by copying the java folder which contains the JDK from program files to users/user/myfolder then in android studio settings for build/deployment for gradle, i selected this path -> users/user/myfolder/java for java home then sync
I noticed that you have another video that's also about Login and Sign Up in Firebase. Is it different from what you taught here, and if it is, what is the difference?
Love the theme of your videos btw I love purple and white combo too!!
Thank you! 💜
In this video, we have used realtime database and in the previous video we have used authentication for login signup.
I hope, it's clear :-)
@@android_knowledge Ohhh is it not possible to use the realtime database and authentication at the same time?
@@anjachi7750 You can use both in the same app but for different purposes.
For detailed information, refer below link:
1. Firebase Authentication:
firebase.google.com/docs/auth
2. Firebase Realtime Database:
firebase.google.com/docs/database
@@android_knowledge the coding for the realtime database and authentication can be in the same java class or not? I'm using authentication to verified the user through email..but how do I save the same email and username in the realtime database..can you help me with this?
did you change anything in the rules of firebase? because maybe that's the reason why i'm getting an error. THANK YOU
No buddy, I have not changed any firebase rules.
@@android_knowledge Thank you for the response, tomorrow i will watch your Other tutorial 😁
What kind of error are you getting?
can you add forgot password with firebase realtime database (in java in this layouts)
thank you, i love you so much
Nice video! 👏🏼
Im facing an error and when i run the app, it cant launch the signup activity. Error is for LoginActivity and says "The activity must be exported or contain an intent-filter".
I would appreciate it if you help me.
Thank you!
Please refer the below link:
stackoverflow.com/questions/40508303/the-activity-must-be-exported-or-contain-an-intent-filter
Thanks for the response 😊
Now its working, but i have another problem. When i signup its fine and all data get in firebase, but when i go to login and add the correct username and password it says tha the user doesn't exist.
Can you help me please
I changed the code with the code that Android Knowledge pinned in the comments but it didnt work. So i restart my laptop and now it's fine! Try it and search in your code and check if you miss something.
Thank you ❤
Thanks for beautiful ui
hi..i've done all the things based on the video and the corrections also. everything runs perfectly but when i input my data in the sign up page, the data won't load in firebase. so after i sign up it the toast said "sign up sucess" but when i try to login it said "the username does not exist". the inputs wont save in the firebase
i can email u all my source codes if u want or any other method to validate my codes
Any error captured in logcat?
@@android_knowledge I got errors in my Logcat
Did you use firebase database or firebase firestore?
can you make same video realted kotlin language?
Sure, will be uploading more videos on kotlin soon :-)
Thankyou soo much....
'Cannot resolve value R' How to solve this error ?
Invalidate caches and restart or rebuild gradle.
How to have intent in code
Hi, I followed the video and the user account is registered but it doesn't move to the Home page due to missing users. How do I fix it?
Or was there something I missed?
Please go through the source code and check if any line of code you might have missed, by mistakenly :-)
@@android_knowledge Maybe it's to do with the SDK version
@@android_knowledge And it's strange since I checked it twice. But I'll take another look.
I did add a placeholder code for it until I find a permanent solution.
where you get backgroud image?
I created in canva :-)
Why error at equals
Query is not working it showing error.
Compare your query from the below source code query:
androidknowledge.com/login-signup-android-studio-firebase-realtime/
Yeah bhai plz help kar tu dekh maine subscribe bhi kiya hai pls update aur deletion bhi bata de plz bhai jaise hai mera tu thoda help karde jaldi video nikal bhej na bhai plz