#5 Login and Registration Android App Tutorial Using Firebase Authentication - Display User Profile

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024

ความคิดเห็น • 112

  • @МаркоШтака-р2к
    @МаркоШтака-р2к 3 ปีที่แล้ว +2

    If someone used a real-time database, replace part of the code:
    DatabaseReference reference = FirebaseDatabase.getInstance().getReference("Users").child(userID);
    reference.addValueEventListener(new ValueEventListener() {
    @Override
    public void onDataChange(@NonNull DataSnapshot snapshot) {
    User userProfile = snapshot.getValue(User.class);
    if(userProfile != null) {
    fullName.setText(userProfile.getFullName());
    email.setText(userProfile.getEmail());
    age.setText(userProfile.getAge());
    }
    Previously, set the get and set methods in the 'User' class
    Thanks for the great tutorials! You helped me a lot.

    • @marthinvictorhansen9411
      @marthinvictorhansen9411 3 ปีที่แล้ว +1

      hey, i tried to change code to this, but my apk still cant display values and it's force close. can you help me?

  • @guyalalee5090
    @guyalalee5090 3 ปีที่แล้ว +7

    Hi, can you make how to update the data? I've been following you channel and I have to say you're the best tutorial channel ever !!

  • @baroncandy3939
    @baroncandy3939 2 ปีที่แล้ว

    i saw a few before this which did not work this is smallest code i have seen for far for this work and worked flawlessly thanks a lot

  • @ahmednasif5443
    @ahmednasif5443 3 ปีที่แล้ว +2

    This video is great and well explained , deserves the most views among all the similar tutorials

  • @rayancrasta7460
    @rayancrasta7460 3 ปีที่แล้ว +1

    Best video ever for Firebase Auth .

    • @CodeWithMazn
      @CodeWithMazn  3 ปีที่แล้ว

      I am glad that you liked it! More firebase tutorials are coming! Stay tuned

  • @palakshravagi4968
    @palakshravagi4968 3 ปีที่แล้ว +1

    This video is so helpful and informative thank you, Keep it up.

  • @alon12michno52
    @alon12michno52 6 หลายเดือนก่อน

    Thank youuuuuuuuu this video tutorial is amazingggggggggggggggggggggg

  • @ayushkhare4231
    @ayushkhare4231 3 ปีที่แล้ว

    Thank You for teaching in such simple way !!!

  • @sudarshanakonwar3458
    @sudarshanakonwar3458 3 ปีที่แล้ว +1

    Sir, your videos are awesome.. Would be grateful if you also show how to update the users profile..

  • @colenevargas1937
    @colenevargas1937 3 ปีที่แล้ว +4

    I followed your tutorials about logging in and registration, and they helped me a lot. I've just got this problem, when I try this tutorial, why I can't display the values?

  • @techgamer646
    @techgamer646 4 ปีที่แล้ว +2

    please make video on shared preference
    when sure open the app first time then show login screen and then user open the app second time then do not need the login direct redirected on main page screen
    please make a video on this concept

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว +1

      I will definitely put it in my list!

    • @Isa-hk8xf
      @Isa-hk8xf 3 ปีที่แล้ว

      Yes please make it

    • @thebunnygamer01
      @thebunnygamer01 2 ปีที่แล้ว

      @@CodeWithMazn but not yet! 😑

  • @meditainment4225
    @meditainment4225 3 ปีที่แล้ว

    Your way of teaching is love and i want you to be my teacher 😊😊, please make a video on how to send notification to specific user from 🔥 firebase

    • @CodeWithMazn
      @CodeWithMazn  3 ปีที่แล้ว +1

      Thank you the kind words! I am happy that my tutorial helped! I will add your suggestion to my list!

  • @abdelrahmanali9922
    @abdelrahmanali9922 3 ปีที่แล้ว

    Thank You very much it helped me so much

  • @ZaidKhan-hs2uv
    @ZaidKhan-hs2uv 3 ปีที่แล้ว

    Great video .As amazing as its simple.Keep it up.Subscribed

  • @muhammadadel9029
    @muhammadadel9029 2 ปีที่แล้ว

    That’s so wonderful declaration thanks alot
    So i have this question can i give access 2 user for editing his info & how

  • @zoroslvr
    @zoroslvr 2 ปีที่แล้ว

    THANK YOU SO MUCH. YOU SAVED MY LIFE

  • @Ventus277
    @Ventus277 3 ปีที่แล้ว +2

    I know this video is old, but a video on how to update these informations from the app (like an update profile button) could be really useful

    • @sicx3770
      @sicx3770 3 ปีที่แล้ว

      yea, i hope he continue the series with the update profile function.

  • @kennethpacatang1177
    @kennethpacatang1177 2 ปีที่แล้ว

    Nice tutorial!,
    sir, can you make tutorial how to display user info in fragmen, bottom navigation view

  • @tejkirankushwaha1439
    @tejkirankushwaha1439 2 ปีที่แล้ว

    What an awesome tutorial!!!!!!!!!!!!!!!!!!!!!! 🎉🤗

  • @longtrinhdev
    @longtrinhdev 2 หลายเดือนก่อน

    thank you very much.

  • @obichidi233
    @obichidi233 3 ปีที่แล้ว

    Thank You ! This helped lots!

  • @meminnasha4080
    @meminnasha4080 3 ปีที่แล้ว +1

    I can't fetch any data from firebase? Why? is there any solution

  • @thaile8172
    @thaile8172 2 ปีที่แล้ว

    Thanks for your great tutorial but I got a problem, my app is crashed when I call function addListenerForSingleValueEvent, do you have any idea? Thanks a lot ^^

  • @dtk4548
    @dtk4548 4 ปีที่แล้ว +4

    error-
    Run console:
    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.FirebaseUser.getUid()' on a null object reference
    at com.test.test.ProfileView.onCreate(ProfileView.java:34)
    any solution to this error ?

  • @maul_grab
    @maul_grab 2 ปีที่แล้ว +1

    Great video! I was wondering how you would go about adding this sort of functionality to fragments within my app, such as a login/register fragment or a profile information fragment that fetches your data from firebase.

    • @africanchild3784
      @africanchild3784 2 ปีที่แล้ว

      I have the same question

    • @riskiadhitama
      @riskiadhitama 5 หลายเดือนก่อน

      #astra
      #triton
      #sarigiri
      #kotabumi
      #pondokaren
      #cengkareng
      #kalideres
      #tanahabang
      #pondokkopi

  • @ranjinisunderaraj7844
    @ranjinisunderaraj7844 2 ปีที่แล้ว

    Hello sir. This video's are so good and benefits for me. I am currently doing my fyp . Sir in this video I can see user display profile there is only logout. Can u create same like this and insert this feature like user profile name age email that can able to change with edit, update and delete button . When they change here it automatically change in firebase database. Like. That

  • @kennethdelacruz9485
    @kennethdelacruz9485 2 ปีที่แล้ว

    how to go back in the recent activity after the user switch to other apps, while the user is currently logged in?

  • @graziaorlando255
    @graziaorlando255 4 ปีที่แล้ว

    21 th like ! i love you !! ||

  • @thubigdog4333
    @thubigdog4333 2 ปีที่แล้ว

    Hello kind sir, all of the video is great and i understand thanks to you but when i do the display data my app crashes whenever i login, i just cant seem to get the data from the database, do you have any idea what is the problem ?

  • @hananiadan7789
    @hananiadan7789 2 ปีที่แล้ว

    THANK YOU!!!! ARGHH YOU THE BEST

  • @jyoti583
    @jyoti583 4 ปีที่แล้ว

    Eagerly waiting for next parts. Please complete this series 🤗. I am following this series.

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว +2

      Then, I will upload a new video for you in an hour!

  • @jesmarsuan5516
    @jesmarsuan5516 3 ปีที่แล้ว +1

    no "Users" at Start Collection pls help

  • @jay-annoliveros5358
    @jay-annoliveros5358 2 ปีที่แล้ว

    Hello, I have a problem. After clicking log in the ProfileActivity will crash.

  • @colenevargas1937
    @colenevargas1937 3 ปีที่แล้ว +1

    Can u please help me? I followed your tutorial but why it doesn't show the values on my next activity?

  • @hunt6644
    @hunt6644 3 ปีที่แล้ว

    Bro upload video of how to upload file in current user and retrieveing

  • @munibaatiq137
    @munibaatiq137 2 ปีที่แล้ว

    Thanks A lot Sir!! Great Tutorial Very helpful & Easy To Understand .I'm Thankful to you For this Kindness.

  • @n2datasolutions443
    @n2datasolutions443 ปีที่แล้ว

    I tried this but on an additional page called UserProfile, so once the user gets to their main activity they would click the profile button to get there and they can view/edit their user details, this isn't however working at the moment and doesn't even display the user details, any knowledge on why?

  • @randunumysterio8398
    @randunumysterio8398 3 ปีที่แล้ว +1

    Why I can't fetch any data :(

  • @willsimz144
    @willsimz144 2 ปีที่แล้ว

    Great step by step , although the values in the profile are not showing for me in the profile but i do see them in the Realtime database , any suggestions?

    • @riskiadhitama
      @riskiadhitama 5 หลายเดือนก่อน

      #atm
      #btn
      #org
      #ktp
      #mtv
      #tng
      #spg
      #pns
      #gps

  • @maraiiamina3575
    @maraiiamina3575 2 ปีที่แล้ว

    very helpful tutorial please how can I update user profile any help please

  • @eoghanfeighery7383
    @eoghanfeighery7383 ปีที่แล้ว

    Hi Mazn, did you have a video for editing a profile and saving it to Realtime Firebase? Because I made one for it but it keeps crashing when I run it.

  • @ethanhunt8345
    @ethanhunt8345 3 ปีที่แล้ว +1

    can we get source code of all your lectures

  • @smileilunga2820
    @smileilunga2820 2 ปีที่แล้ว

    I am wondering how to do this with web development, so I am creating new users with firebase and it saves on the database but I have no idea how to make the profile on the website
    Can you help?

  • @muhtakdim3151
    @muhtakdim3151 3 ปีที่แล้ว +1

    please tutorial for remember me use database realtime

  • @armiskana3086
    @armiskana3086 3 ปีที่แล้ว

    thank you for this tutorial you help me :)

  • @scharvaljoseph6142
    @scharvaljoseph6142 3 ปีที่แล้ว

    Can you create a video for images as well?

  • @iosdeveren
    @iosdeveren 4 ปีที่แล้ว

    You're amazing bro! Perfect, I'm waiting for new videos :D
    Please make a chat system with firebase, it would be really nicee

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว +5

      I am actually thinking to create a chat application video tutorial using Firebase. I will be working on it soon!!

    • @iosdeveren
      @iosdeveren 4 ปีที่แล้ว

      MetaMaze It would be Reallyyy nicee, I will be waiting for it..

    • @farkyank
      @farkyank 3 ปีที่แล้ว

      hocam eğer unutmadıysanız bana yardımcı olabilir misiniz?

  • @woonie3134
    @woonie3134 3 ปีที่แล้ว

    Can I add this if I already have a user registered. I did not set up database on firebase yet but my user can login and register confused.

  • @sandirensan9907
    @sandirensan9907 2 ปีที่แล้ว

    how to access a child node under users node ???

  • @ravi1341975
    @ravi1341975 3 ปีที่แล้ว

    HI,
    why 'final' modifier for the TextView?

  • @ainaafifah5687
    @ainaafifah5687 3 ปีที่แล้ว

    Hi Mazn, what a great tutorial you have here! I run my program but it only displays the name and the rest is left blank. Can you help me perhaps?

  • @aldrichnavoa5173
    @aldrichnavoa5173 2 ปีที่แล้ว

    i follow all of your video, but i can't display the name, theres no error.

  • @toanpham4049
    @toanpham4049 2 ปีที่แล้ว

    can you do the edit profile plsssssss .i love you

  • @hugomiguel3762
    @hugomiguel3762 3 ปีที่แล้ว +1

    hey, for some weird reason I can't get the names from the database, I think it's because the user is always assigned as null and I don't know what to do, I would appreciate your help.

  • @freefiretiktokfree2445
    @freefiretiktokfree2445 3 ปีที่แล้ว

    why user details are not displaying in my app ,is there problem in database settings

  • @kamalabaikattimani6994
    @kamalabaikattimani6994 3 ปีที่แล้ว

    Dear sir I got error like "Andriod resources linking failed" How to fix it..
    Please help me.

  • @youssefmansour5756
    @youssefmansour5756 3 ปีที่แล้ว

    perfect tutorial thanks alot !
    you can add one more video about, if i logged in then i close the app then reopen it i have to login again, it must take me to the Profile Activity directly.. i hope if you can complete this playlist because it's perfect but it lack only this thing !
    again thanks for the playlist it;s really good..

    • @youssefmansour5756
      @youssefmansour5756 3 ปีที่แล้ว +2

      Actually i found out how to do that guys. just add function in the main activity in the end.
      @Override
      protected void onStart() {
      super.onStart();
      FirebaseUser user = mAuth.getCurrentUser();
      if(user != null){
      startActivity(new Intent(MainActivity.this, ProfileActivity.class));
      finish();
      }
      }
      }
      you;re welcome guys

    • @CodeWithMazn
      @CodeWithMazn  3 ปีที่แล้ว +1

      Thank you for your comment. I will add this to my list and will upload it soon!

    • @CodeWithMazn
      @CodeWithMazn  3 ปีที่แล้ว +1

      Thank you!

    • @youssefmansour5756
      @youssefmansour5756 3 ปีที่แล้ว

      @@CodeWithMazn actually thank you. i want to ask you about something.
      i already did the login part and i want to merge between two projects and i couldn't i tried a lot of ways but also i couldn't. can i contact you on instgram and tell what should i do or can you make a tutorial about it!?
      sorry for asking so much but you're so awesome and clear with your videos so that's why im asking YOU not someone else..

  • @rafi481
    @rafi481 ปีที่แล้ว

    How to make uid visible?

  • @nayeembaig
    @nayeembaig 2 ปีที่แล้ว

    Please help its not working details aren't displaying 😥

  • @ndhdysu5933
    @ndhdysu5933 3 ปีที่แล้ว

    How can I show the unique ID from the database?

  • @princekumarkushwaha
    @princekumarkushwaha 2 ปีที่แล้ว

    i am also not able to display the values from firebase, like everyone here, anyone finds any solution?

  • @formaapp6673
    @formaapp6673 3 ปีที่แล้ว

    please how to use firestore service instead of realtime , I am having sleepless nights trying to work on it

  • @raigor1415
    @raigor1415 3 ปีที่แล้ว

    love it

  • @Verum_Rex
    @Verum_Rex 2 ปีที่แล้ว

    You didn't show if the user ID has changed. I followed the steps in this tutorial and it's still giving me random user ID info. How can I make it so that user ID matches like their email or name?

    • @loudeternitygaming2327
      @loudeternitygaming2327 ปีที่แล้ว

      i have the same issue but the uid is incrementing when i create another account it matches the uid from the previous user that i created

  • @freefiretiktokfree2445
    @freefiretiktokfree2445 3 ปีที่แล้ว

    great

  • @sudhamshubhat2285
    @sudhamshubhat2285 4 ปีที่แล้ว

    Can you please tell how to change the fullname when user wants to change it?

    • @CodeWithMazn
      @CodeWithMazn  4 ปีที่แล้ว

      Check Firebase documentation. I will upload a video soon on how to update data in Firebase

    • @nishantchoudhary7865
      @nishantchoudhary7865 3 ปีที่แล้ว

      @@CodeWithMazn please make it ASAP with respect to this series

  • @nishantchoudhary7865
    @nishantchoudhary7865 3 ปีที่แล้ว

    Can you give some resources on how to edit profile

    • @CodeWithMazn
      @CodeWithMazn  3 ปีที่แล้ว +1

      You can check Firebase documentation on how to update and delete section. firebase.google.com/docs/database/web/read-and-write#update_specific_fields

    • @nishantchoudhary7865
      @nishantchoudhary7865 3 ปีที่แล้ว

      @@CodeWithMazn thanks

  • @denizaygun4909
    @denizaygun4909 2 ปีที่แล้ว

    not working

  • @christianconcepcion571
    @christianconcepcion571 3 ปีที่แล้ว

    source code please

  • @krileks
    @krileks 2 ปีที่แล้ว +1

    To those who can't obtain data from Firebase:
    Replace:
    reference = FirebaseDatabase.getInstance().getReference("User");
    to:
    reference = FirebaseDatabase.getInstance("You might need to put your URL from real-time Firebase database ").getReference().child("Users").child(userID);

  • @hselin
    @hselin ปีที่แล้ว +1

    For everyone who cant get the information to pop up, fear not! I have the solution
    change:
    reference = FirebaseDatabase.getInstance().getReferenceFromUrl("Your firebase url here")
    .child(FirebaseAuth.getInstance().getCurrentUser().getUid());
    and
    reference.addValueEventListener(new ValueEventListener() {
    basically just change the Singlevalueevent to valueeventlistener
    You're welcome!

    • @LP-tm5tr
      @LP-tm5tr ปีที่แล้ว

      you are a life saver, thanks

  • @colenevargas1937
    @colenevargas1937 3 ปีที่แล้ว +1

    Can u please help me? I followed your tutorial but why it doesn't show the values on my next activity?

    • @scharvaljoseph6142
      @scharvaljoseph6142 3 ปีที่แล้ว

      You need to ensure that you are referencing the correct firebase ID for the specific ID

  • @sujonali7581
    @sujonali7581 3 ปีที่แล้ว +1

    but there catch null pointer exeption...how can i fix

    • @wyattearp84
      @wyattearp84 3 ปีที่แล้ว

      you might have a wrong field id

  • @colenevargas1937
    @colenevargas1937 3 ปีที่แล้ว +1

    Can u please help me? I followed your tutorial but why it doesn't show the values on my next activity?

    • @izzahfarhana2712
      @izzahfarhana2712 3 ปีที่แล้ว

      Try check for the rules in Realtime Database