21 thoughts on “Firebase User Authentication Tutorial – Login using Email and Password”

  1. can we use same database to insert multiple data like data from the Items list and the data from the New organization registrations into firebase database.

    Reply
  2. thank you so much tutorial works great but i have a question i made a button in the profile activity that brings me to a list activity (this is a listview that is synced with my database at firebase and its giiving me an error if u could plz take a look at my code and mayb try to help me i think i know were the problum is i just dont know how to fix it

    Reply
  3. sir, i got a problem. help me plz

    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.a603.shangba, PID: 3877
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.a603.shangba/com.example.a603.shangba.MainActivity}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.a603.shangba/com.example.a603.shangba.ProfileActivity}; have you declared this activity in your AndroidManifest.xml?
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6077)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
    Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.a603.shangba/com.example.a603.shangba.ProfileActivity}; have you declared this activity in your AndroidManifest.xml?
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1805)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
    at android.app.Activity.startActivityForResult(Activity.java:4224)
    at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:48)
    at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:75)
    at android.app.Activity.startActivityForResult(Activity.java:4183)
    at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:856)
    at android.app.Activity.startActivity(Activity.java:4507)
    at android.app.Activity.startActivity(Activity.java:4475)
    at com.example.a603.shangba.MainActivity.onCreate(MainActivity.java:49)
    at android.app.Activity.performCreate(Activity.java:6664)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707) 
    at android.app.ActivityThread.-wrap12(ActivityThread.java) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) 
    at android.os.Handler.dispatchMessage(Handler.java:102) 
    at android.os.Looper.loop(Looper.java:154) 
    at android.app.ActivityThread.main(ActivityThread.java:6077) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) 

    Reply
  4. This is great, it did work for me.. Thanks very much chap but I tried to get User name Here:
    textViewUserEmail.setText(“Welcome ” + user.getDisplayName()); it returned null… How can I get a User Name?

    Reply
  5. Bro, can you help me to complete your tutorial?

    I have try your tutorial above, and done! it’s work.
    But, How about resetting password? I try to find but nothing found. Just your tutorial of firebase auth was work. And now please create a post that show us how to resetting password in firebase auth in android.

    Please. Thank you. I’ll be back, so I’ll be wait your response.

    Reply
  6. Hi,

    Thank you for your tutorial, it’s so usefull. But I got a problem I think. I compiled your code and it worked but when I enter the e-mail and password, it says only “registering please wait..” and does nothing. I think it couldn’t connect to firebase. Can you help me?

    Reply
  7. i have a prblm when i run my app n enter the email n password so when i register its says after buffering that registration error. why?

    Reply
  8. Thank you for this tutorial. I am a beginner and it has been so helpful.

    My problem is that the “User Registration” works fine and add’s my info to Firebase Auth. However, I am not taken to logged in screen to log out….Also, “Already Registered” does not work. Any ideas why?

    Reply
  9. I am gettin this run time exception

    java.lang.NullPointerException: Attempt to invoke interface method ‘void com.google.firebase.auth.FirebaseAuth$AuthStateListener.onAuthStateChanged(com.google.firebase.auth.FirebaseAuth)’ on a null object reference at com.google.firebase.auth.zzi.run(Unknown Source)

    What should I do?

    Reply

Leave a Comment