Login and Signup using Firebase Realtime Database in Android Studio | Store Data

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 92

  • @android_knowledge
    @android_knowledge  2 года назад +6

    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/

    • @resaerpay
      @resaerpay Год назад

      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

    • @sadness9438
      @sadness9438 6 месяцев назад

      I also have same problem here

    • @prajwalhire5914
      @prajwalhire5914 5 месяцев назад

      Not working

  • @Anime_who2429
    @Anime_who2429 Год назад

    bro is literally living legend

  • @frank3606
    @frank3606 11 месяцев назад +2

    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

  • @fnk6386
    @fnk6386 10 месяцев назад +1

    Hello, can you do a video on how to use firebase authentication and realtime database at the sametime

  • @naishalmodi5064
    @naishalmodi5064 Год назад +1

    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

  • @sun-qj8mv
    @sun-qj8mv 6 месяцев назад

    Hello, do you have videos about a complete admin login using firebase & java?

  • @jacurry2620
    @jacurry2620 Год назад

    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

  • @markdugs5573
    @markdugs5573 2 года назад +1

    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

    • @android_knowledge
      @android_knowledge  2 года назад +2

      Here it is, enjoy:
      ruclips.net/video/mEfW5vFa0Us/видео.html

    • @markdugs5573
      @markdugs5573 2 года назад

      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

  • @faizanalimian9348
    @faizanalimian9348 Год назад

    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

  • @mayureshpatil6265
    @mayureshpatil6265 Год назад

    Excellent!....It woks fab.🤞

  • @sachinmourya4540
    @sachinmourya4540 Год назад

    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

  • @shinobi4076
    @shinobi4076 Год назад

    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

  • @LakshmiS-k5v
    @LakshmiS-k5v Год назад +1

    Hi sir can you make video for shopping cart(add to cart) in android java using firebase🙏🙏

  • @JoshuaG
    @JoshuaG 2 года назад +2

    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.

  • @gufraanshaikh3798
    @gufraanshaikh3798 2 года назад +1

    Outstanding topic💥

  • @deepakveluvolu7741
    @deepakveluvolu7741 Год назад

    hello i have followed every step ,but when i run it shows the same home page,please tell a solution

  • @novayoutube2937
    @novayoutube2937 2 года назад +1

    Thank you for making this topic video😊. Could you please create some more videos related to kotlin?

    • @android_knowledge
      @android_knowledge  2 года назад +1

      Yes, sure :-)
      Keep checking our android kotlin playlist:
      ruclips.net/p/PLQ_Ai1O7sMV2_qzi0ra-eL4EX-vN3W2QW

  • @zarashaikh5640
    @zarashaikh5640 2 года назад +1

    Creativity++ 😍

  • @zhandosmoldakhan13
    @zhandosmoldakhan13 Год назад

    hello
    do have a login and registration for admin panel video tutorials
    thanks

  • @jaycbelmores2nd335
    @jaycbelmores2nd335 Год назад

    I hope you include the gender selection for the signup activity, I had confusion about how to store gender data in real-time database

  • @fsp4999
    @fsp4999 Год назад

    What's is the architecture are you using in this project?

  • @hs9732
    @hs9732 2 года назад +1

    Sir please make video On login nad singuo with mysql .. please please and also crud system

  • @goosa9999
    @goosa9999 6 месяцев назад

    Te quiero eres el mejor es el único vídeo que funciona

  • @michaelangelolozande2746
    @michaelangelolozande2746 Год назад +1

    Would this still work even with no internet,?

    • @android_knowledge
      @android_knowledge  Год назад +1

      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

  • @maikonjipa
    @maikonjipa Год назад

    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.

  • @tauhaimeme9295
    @tauhaimeme9295 2 года назад +1

    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

    • @android_knowledge
      @android_knowledge  2 года назад

      Is there any error present in logcat?

    • @tauhaimeme9295
      @tauhaimeme9295 2 года назад

      @@android_knowledge No any weird errors in logcat, only 1 warning handleWindowVisibility: no operation for token android.os.BinderProxy@c830c49

    • @chisomemmanuel6160
      @chisomemmanuel6160 Год назад +1

      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);

    • @ucanhnguyenphan1415
      @ucanhnguyenphan1415 Год назад

      @@chisomemmanuel6160 i've follow your 2 methods, and nothing seems to work, is there any other way i can try? thanks in advance.

  • @CodeA-ho5ty
    @CodeA-ho5ty Год назад

    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

  • @madhurivaghasana2820
    @madhurivaghasana2820 Год назад

    Thank You for Sharing such a useful tutorial.

  • @mayukhsaharoy9777
    @mayukhsaharoy9777 Год назад

    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.

    • @android_knowledge
      @android_knowledge  Год назад

      The below link might help you:
      stackoverflow.com/questions/72224454/execution-failed-for-task-appmapdebugsourcesetpaths-error-while-evaluatin

    • @android_knowledge
      @android_knowledge  Год назад

      Summary:
      Update the google gms plugin in gradle build :-)

    • @mayukhsaharoy9777
      @mayukhsaharoy9777 Год назад

      @@android_knowledge Thank you for the suggestion, now it's working fine

  • @devloper_1904
    @devloper_1904 Год назад

    Grid and build error is coming please solution

  • @faizaali8009
    @faizaali8009 Год назад

    Please can you add Shared Preferences as well in this work Kindly.....?

  • @angeloalonzo5500
    @angeloalonzo5500 Год назад

    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 :(

    • @chisomemmanuel6160
      @chisomemmanuel6160 Год назад

      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

  • @anjachi7750
    @anjachi7750 2 года назад +1

    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!!

    • @android_knowledge
      @android_knowledge  2 года назад +1

      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 :-)

    • @anjachi7750
      @anjachi7750 2 года назад

      ​@@android_knowledge Ohhh is it not possible to use the realtime database and authentication at the same time?

    • @android_knowledge
      @android_knowledge  Год назад

      @@anjachi7750 You can use both in the same app but for different purposes.

    • @android_knowledge
      @android_knowledge  Год назад

      For detailed information, refer below link:
      1. Firebase Authentication:
      firebase.google.com/docs/auth
      2. Firebase Realtime Database:
      firebase.google.com/docs/database

    • @nieall
      @nieall Год назад

      @@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?

  • @CodeA-ho5ty
    @CodeA-ho5ty Год назад

    did you change anything in the rules of firebase? because maybe that's the reason why i'm getting an error. THANK YOU

    • @android_knowledge
      @android_knowledge  Год назад

      No buddy, I have not changed any firebase rules.

    • @CodeA-ho5ty
      @CodeA-ho5ty Год назад

      @@android_knowledge Thank you for the response, tomorrow i will watch your Other tutorial 😁

    • @chisomemmanuel6160
      @chisomemmanuel6160 Год назад

      What kind of error are you getting?

  • @haritmengar
    @haritmengar Год назад

    can you add forgot password with firebase realtime database (in java in this layouts)

  • @abyanhafiizh-3065
    @abyanhafiizh-3065 Год назад

    thank you, i love you so much

  • @StavrosAshikkalis
    @StavrosAshikkalis Год назад

    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!

    • @android_knowledge
      @android_knowledge  Год назад +1

      Please refer the below link:
      stackoverflow.com/questions/40508303/the-activity-must-be-exported-or-contain-an-intent-filter

    • @StavrosAshikkalis
      @StavrosAshikkalis Год назад

      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

    • @StavrosAshikkalis
      @StavrosAshikkalis Год назад

      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.

  • @mrdila4353
    @mrdila4353 10 месяцев назад

    Thank you ❤

  • @manofsteel6173
    @manofsteel6173 Год назад

    Thanks for beautiful ui

  • @nv7827
    @nv7827 Год назад

    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

    • @nv7827
      @nv7827 Год назад

      i can email u all my source codes if u want or any other method to validate my codes

    • @android_knowledge
      @android_knowledge  Год назад

      Any error captured in logcat?

    • @Orock_Senior
      @Orock_Senior Год назад

      @@android_knowledge I got errors in my Logcat

    • @chisomemmanuel6160
      @chisomemmanuel6160 Год назад

      Did you use firebase database or firebase firestore?

  • @haritmengar
    @haritmengar 2 года назад +1

    can you make same video realted kotlin language?

    • @android_knowledge
      @android_knowledge  2 года назад

      Sure, will be uploading more videos on kotlin soon :-)

  • @faizaali8009
    @faizaali8009 Год назад

    Thankyou soo much....

  • @45_kadamsanikajaywant2
    @45_kadamsanikajaywant2 7 месяцев назад

    'Cannot resolve value R' How to solve this error ?

    • @android_knowledge
      @android_knowledge  7 месяцев назад +1

      Invalidate caches and restart or rebuild gradle.

  • @centauruspickle7602
    @centauruspickle7602 Год назад

    How to have intent in code

  • @eoghanfeighery7383
    @eoghanfeighery7383 Год назад

    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?

    • @android_knowledge
      @android_knowledge  Год назад

      Please go through the source code and check if any line of code you might have missed, by mistakenly :-)

    • @eoghanfeighery7383
      @eoghanfeighery7383 Год назад

      @@android_knowledge Maybe it's to do with the SDK version

    • @eoghanfeighery7383
      @eoghanfeighery7383 Год назад

      @@android_knowledge And it's strange since I checked it twice. But I'll take another look.

    • @eoghanfeighery7383
      @eoghanfeighery7383 Год назад

      I did add a placeholder code for it until I find a permanent solution.

  • @karthickdinesh5589
    @karthickdinesh5589 Год назад

    where you get backgroud image?

  • @aimanakym97
    @aimanakym97 Год назад

    Why error at equals

  • @yelatiakhilsai950
    @yelatiakhilsai950 Год назад

    Query is not working it showing error.

    • @android_knowledge
      @android_knowledge  Год назад

      Compare your query from the below source code query:
      androidknowledge.com/login-signup-android-studio-firebase-realtime/

  • @ganesh4406
    @ganesh4406 Год назад

    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