No video

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

  Рет қаралды 61,503

CodeWithMazn

CodeWithMazn

Күн бұрын

Пікірлер: 112
@user-vl8wf4xd9o
@user-vl8wf4xd9o 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
This video is great and well explained , deserves the most views among all the similar tutorials
@rayancrasta7460
@rayancrasta7460 3 жыл бұрын
Best video ever for Firebase Auth .
@CodeWithMazn
@CodeWithMazn 3 жыл бұрын
I am glad that you liked it! More firebase tutorials are coming! Stay tuned
@dtk4548
@dtk4548 3 жыл бұрын
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 ?
@ReaperGaming-uj6ez
@ReaperGaming-uj6ez 2 жыл бұрын
Did you solve it by now???
@alon12michno52
@alon12michno52 4 ай бұрын
Thank youuuuuuuuu this video tutorial is amazingggggggggggggggggggggg
@colenevargas1937
@colenevargas1937 3 жыл бұрын
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?
@akhilpadmanaban3242
@akhilpadmanaban3242 3 жыл бұрын
same here
@ashishmonal
@ashishmonal 2 жыл бұрын
Same here
@alexaguiar7268
@alexaguiar7268 2 жыл бұрын
Same here
@palakshravagi4968
@palakshravagi4968 3 жыл бұрын
This video is so helpful and informative thank you, Keep it up.
@sudarshanakonwar3458
@sudarshanakonwar3458 3 жыл бұрын
Sir, your videos are awesome.. Would be grateful if you also show how to update the users profile..
@techgamer646
@techgamer646 3 жыл бұрын
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 3 жыл бұрын
I will definitely put it in my list!
@Isa-hk8xf
@Isa-hk8xf 3 жыл бұрын
Yes please make it
@thebunnygamer01
@thebunnygamer01 2 жыл бұрын
@@CodeWithMazn but not yet! 😑
@ayushkhare4231
@ayushkhare4231 3 жыл бұрын
Thank You for teaching in such simple way !!!
@ZaidKhan-hs2uv
@ZaidKhan-hs2uv 3 жыл бұрын
Great video .As amazing as its simple.Keep it up.Subscribed
@meminnasha4080
@meminnasha4080 3 жыл бұрын
I can't fetch any data from firebase? Why? is there any solution
@abdelrahmanali9922
@abdelrahmanali9922 3 жыл бұрын
Thank You very much it helped me so much
@longtrinhdev
@longtrinhdev Ай бұрын
thank you very much.
@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
@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 ^^
@zoroslvr
@zoroslvr 2 жыл бұрын
THANK YOU SO MUCH. YOU SAVED MY LIFE
@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 жыл бұрын
Thank you the kind words! I am happy that my tutorial helped! I will add your suggestion to my list!
@kennethdelacruz9485
@kennethdelacruz9485 Жыл бұрын
how to go back in the recent activity after the user switch to other apps, while the user is currently logged in?
@graziaorlando255
@graziaorlando255 3 жыл бұрын
21 th like ! i love you !! ||
@colenevargas1937
@colenevargas1937 3 жыл бұрын
Can u please help me? I followed your tutorial but why it doesn't show the values on my next activity?
@storybook3284
@storybook3284 3 жыл бұрын
same problem
@kennethpacatang1177
@kennethpacatang1177 Жыл бұрын
Nice tutorial!, sir, can you make tutorial how to display user info in fragmen, bottom navigation view
@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?
@Ventus277
@Ventus277 3 жыл бұрын
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.
@randunumysterio8398
@randunumysterio8398 3 жыл бұрын
Why I can't fetch any data :(
@hugomiguel3762
@hugomiguel3762 3 жыл бұрын
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.
@nbasola5218
@nbasola5218 Жыл бұрын
did you find out?
@obichidi233
@obichidi233 3 жыл бұрын
Thank You ! This helped lots!
@tejkirankushwaha1439
@tejkirankushwaha1439 2 жыл бұрын
What an awesome tutorial!!!!!!!!!!!!!!!!!!!!!! 🎉🤗
@maul_grab
@maul_grab 2 жыл бұрын
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 3 ай бұрын
#astra #triton #sarigiri #kotabumi #pondokaren #cengkareng #kalideres #tanahabang #pondokkopi
@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
@krileks
@krileks 2 жыл бұрын
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);
@recordings117
@recordings117 2 жыл бұрын
i still cant do it :D
@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
@jesmarsuan5516
@jesmarsuan5516 3 жыл бұрын
no "Users" at Start Collection pls help
@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.
@muhtakdim3151
@muhtakdim3151 3 жыл бұрын
please tutorial for remember me use database realtime
@thebunnygamer01
@thebunnygamer01 2 жыл бұрын
Do you got it
@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.
@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?
@jay-annoliveros5358
@jay-annoliveros5358 2 жыл бұрын
Hello, I have a problem. After clicking log in the ProfileActivity will crash.
@ethanhunt8345
@ethanhunt8345 3 жыл бұрын
can we get source code of all your lectures
@ravi1341975
@ravi1341975 3 жыл бұрын
HI, why 'final' modifier for the TextView?
@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 3 ай бұрын
#atm #btn #org #ktp #mtv #tng #spg #pns #gps
@jyoti583
@jyoti583 4 жыл бұрын
Eagerly waiting for next parts. Please complete this series 🤗. I am following this series.
@CodeWithMazn
@CodeWithMazn 4 жыл бұрын
Then, I will upload a new video for you in an hour!
@hunt6644
@hunt6644 3 жыл бұрын
Bro upload video of how to upload file in current user and retrieveing
@armiskana3086
@armiskana3086 3 жыл бұрын
thank you for this tutorial you help me :)
@CodeWithMazn
@CodeWithMazn 3 жыл бұрын
You're welcome 😊
@freefiretiktokfree2445
@freefiretiktokfree2445 3 жыл бұрын
why user details are not displaying in my app ,is there problem in database settings
@erenberkaydinc615
@erenberkaydinc615 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 жыл бұрын
I am actually thinking to create a chat application video tutorial using Firebase. I will be working on it soon!!
@erenberkaydinc615
@erenberkaydinc615 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?
@sandirensan9907
@sandirensan9907 2 жыл бұрын
how to access a child node under users node ???
@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?
@littleelephant137
@littleelephant137 2 жыл бұрын
yes
@maraiiamina3575
@maraiiamina3575 2 жыл бұрын
very helpful tutorial please how can I update user profile any help please
@princekumarkushwaha
@princekumarkushwaha 2 жыл бұрын
i am also not able to display the values from firebase, like everyone here, anyone finds any solution?
@scharvaljoseph6142
@scharvaljoseph6142 3 жыл бұрын
Can you create a video for images as well?
@aldrichnavoa5173
@aldrichnavoa5173 2 жыл бұрын
i follow all of your video, but i can't display the name, theres no error.
@kamalabaikattimani6994
@kamalabaikattimani6994 3 жыл бұрын
Dear sir I got error like "Andriod resources linking failed" How to fix it.. Please help me.
@toanpham4049
@toanpham4049 2 жыл бұрын
can you do the edit profile plsssssss .i love you
@munibaatiq137
@munibaatiq137 2 жыл бұрын
Thanks A lot Sir!! Great Tutorial Very helpful & Easy To Understand .I'm Thankful to you For this Kindness.
@ndhdysu5933
@ndhdysu5933 3 жыл бұрын
How can I show the unique ID from the database?
@rafi481
@rafi481 Жыл бұрын
How to make uid visible?
@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
@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 жыл бұрын
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 жыл бұрын
Thank you for your comment. I will add this to my list and will upload it soon!
@CodeWithMazn
@CodeWithMazn 3 жыл бұрын
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..
@formaapp6673
@formaapp6673 3 жыл бұрын
please how to use firestore service instead of realtime , I am having sleepless nights trying to work on it
@nayeembaig
@nayeembaig 2 жыл бұрын
Please help its not working details aren't displaying 😥
@raigor1415
@raigor1415 2 жыл бұрын
love it
@sudhamshubhat2285
@sudhamshubhat2285 3 жыл бұрын
Can you please tell how to change the fullname when user wants to change it?
@CodeWithMazn
@CodeWithMazn 3 жыл бұрын
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
@freefiretiktokfree2445
@freefiretiktokfree2445 3 жыл бұрын
great
@nishantchoudhary7865
@nishantchoudhary7865 3 жыл бұрын
Can you give some resources on how to edit profile
@CodeWithMazn
@CodeWithMazn 3 жыл бұрын
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
@hselin
@hselin Жыл бұрын
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 жыл бұрын
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 жыл бұрын
but there catch null pointer exeption...how can i fix
@wyattearp84
@wyattearp84 3 жыл бұрын
you might have a wrong field id
@colenevargas1937
@colenevargas1937 3 жыл бұрын
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
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 10 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 156 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 22 МЛН
Firebase Android Tutorial 5 - Retrieving Data from Firebase Realtime Database
11:16
Splash Screen with Animations in Android Studio [Kotlin 2020]
9:55