Login and Registration using Firebase in Android
In this video, we'll show you how to create Login and Registration using Firebase in Android Studio. This step-by-step guide will walk you through the process of creating a Firebase Login Registration, from start to finish.
If you're looking to add authentication to your applications, then this video is for you! We'll show you how to create a Firebase Login Registration in Android, so you can easily allow authorized users access to your app. After watching this video, you'll have everything you need to add authentication to your Android applications!
Download Source code: youtube.codeseasy.com/2022/fi...
Firebase docs: firebase.google.com/docs/auth...
########## For Doubts (ask it here) ################
Discord: / discord
Whatsapp group: whatsappgroup.codeseasy.com
############################################
########## For Business Queries ##########
Contact us for any business queries:
Email: mail@codeseasy.com
Phone number: +918281536333
WhatsApp: whatsapp.codeseasy.com
####################################
Find us on Social Media:
Website: www.codeseasy.com
Telegram: t.me/CodesEasyOfficial
Facebook: / codeseasy
Instagram: / codeseasy
Twitter: / codeseasyblog
Пікірлер: 411
Thanks man, I owe you basically 20% of my grade. Also tutorial really well paced. Doesn't try to show 50 minutes of coding in 15 minutes like so many others.
@CodesEasy
Жыл бұрын
Really happy to to see the video helped you.
@suf1an658
Жыл бұрын
@@CodesEasy hi again, I'm just commenting for advice if you can spare the time. In my current project, I store an array of objects, each object containing the date and an integer value for each day. What I'm trying to do is write the dates and integer values into a table for every user but also be able to edit the integer values with certain functions as well as retrieve the integer values through using the corresponding date values. I'm only doing this for a school project so I'm not concerned with security, what I'm asking is should I continue to use firebase real-time database for this purpose or should I use mySQL because I already know how to query in SQL. Also I'm asking if your mySQL tutorial is still accurate in 2023? A response would be greatly appreciated
@Chaitanya-wk2us
3 ай бұрын
@@suf1an658 this is probably too late to be of any use to you but im gonna comment anyway. using SQLITE for something like that may be very useful as the syntax is similar to mysql and you know some of that alreayd
Watched many videos but this was really simple and easy to kickstart thanks man
@CodesEasy
Жыл бұрын
Glad it helped
OMG this was soo clean n clear tutorial ! thanks a lot sir just finished creating your clone app !! thanks a lot again !!😍😍❤❤🙏🙏
@CodesEasy
Жыл бұрын
Glad it helped
Thank you very much for the tutorial. Very simple, understandable and perfect. :D
@CodesEasy
8 ай бұрын
Glad it helped!
Thanks man, it works and you explained well
@CodesEasy
Жыл бұрын
Happy that the video helped you
thank you very much!! this video help me to create my first little peace of code, have a great day ❤️
@CodesEasy
Жыл бұрын
Happy that the video helped you
Really Helpful. Nice explanation of coding with decent pace. All the best wishes.
@CodesEasy
9 ай бұрын
Glad you liked it
Good job 👍 Thank you for your help and time. Wish you the best from Czech republic ❤
@CodesEasy
Жыл бұрын
Happy that you liked it
Great tutorial - still relevant. Easy to follow even when using Kotlin instead of Java
Thank you so much! You can't even imagine how much you helped out) Огромное спасибо вам! Вы даже не представляете насколько сильно выручили)
@CodesEasy
Жыл бұрын
Happy that the video helped you
Thank you soooo much. I have completed my first lesson of Firebase from you.
@CodesEasy
Ай бұрын
Glad to hear that
Thanks Sir your teaching skill are insane its very easy to understand even for a beginner
@CodesEasy
Жыл бұрын
Happy to help
Thank you for wonderful explaination. As firstly the app doesn't work because of some error but after fixing it, it work successfully.
@CodesEasy
5 ай бұрын
Glad it helped
Perfect and Simple Video. Learnt a lot from it. Thank you❤
@CodesEasy
10 ай бұрын
Glad it was helpful!
Thank you very much, you are the best teacher 👑 , I am really grateful to you
@CodesEasy
11 ай бұрын
You are very welcome
and very good video, thank you a lot bro u r sm a good guy taking time to explain things 👍 i wish u the best in future
@CodesEasy
Жыл бұрын
Glad it helped
Wonderful video.. aapne bhahut ache se samjhaya hai jisse mujhe ab smajh me aa gya hai. me firebase ki problem ko bahut din se thik krne ki kosis kr rha tha pr solve nhi ho pa rhi the .. aapki video se meri ye problem solve ho gyi hai.. thank you so much..
@CodesEasy
6 ай бұрын
👍
Thanks brother, you followed the official documentation which helped me to understand it.
@CodesEasy
4 ай бұрын
Glad it helped
Very helpful! thank you
@CodesEasy
Жыл бұрын
Glad it was helpful!
Thank you for this very informative example.
@CodesEasy
Жыл бұрын
Happy that the video helped you
THIS VIDEO IS AWESOME, DID EVEN REALIZE IT WAS ONLY 36 MINUTES Saved me so much hours and made it look so simple
@CodesEasy
2 ай бұрын
Happy that the video helped you 👍
thank you!! really, i love you man.
I've got this error after clicking the Connect to Firebase. Anyone got an idea how to fix this? Could not find the Android Application module. Only Android Application Modules can be connected to Firebase online projects. Create a new Android Application Module or create/import a different Android Studio project.
thanks, very helpful, greetings from Mexico
@CodesEasy
3 ай бұрын
Glad it helped!
sir, i copied the register only but i tried to direct after register intent into the next page but why it cant? i already copied all of the code in register. do i need to make login and logout also?
@CodesEasy
Жыл бұрын
You have to make sure if the project is properly connected to firebase. Also check the code. Find there it is going wrong and then compare it with the video, you can also download the source code from description
thanks man , very helpful
@CodesEasy
Жыл бұрын
Glad it helped
so helpful, thank you for your hard work
@CodesEasy
8 ай бұрын
Glad it was helpful!
thank you for master for teaching me the database
@CodesEasy
11 ай бұрын
Happy to help
Cool explanation. Thank You so much.
@CodesEasy
7 ай бұрын
Glad it was helpful!
Hello, android studio just got updated to "flamingo" and things seem very different. For starters when I create an empty activity, it seems to be in kotling by default with a completey different default layout. I have never programemd in kotlin and am kind of worried on how to figure this out. Is there anyway to still connect firebase to the prior version?
@CodesEasy
Жыл бұрын
Yes you can do everything as you like. The kotlin part you can select language while creating the project. There will be an option to select between java and kotlin
@ngndnd
Жыл бұрын
u have to clikc “empty views activity”
cleanest tutorial of user auth 👌👌
@CodesEasy
11 ай бұрын
👍
Thank you so much, it worked perfectly
@CodesEasy
3 ай бұрын
Glad it helped
Hello, in many tutorials, in Firebase Assistant of Android Studio, there is the option "Email and password authentication" under Authentication. Why I can't see it right now? Is it the same of choosing "Authenticate using a custom authentication system" as you suggest on your video? (2:45 on your video) Thank you.
@CodesEasy
Жыл бұрын
Its just a name change
@apos1land
Жыл бұрын
@@CodesEasy thank you very much.
Great video, thanks heaps!
@CodesEasy
Жыл бұрын
Happy that you liked the video ❣️
Best content for android developer
@CodesEasy
Жыл бұрын
Happy that the video helped you
Thank you So much Bro, your video really helped
@CodesEasy
Жыл бұрын
Glad it helped
bro you da man
@CodesEasy
Жыл бұрын
Happy that the video helped you
Hello sir I have a new problem when i have done my login the app will be crash 😞 how can i fix it please help me.
Thank u sir for good content ❤
Excelent Tutorial! Thank you very much!!!
@CodesEasy
7 ай бұрын
You're welcome!
hi , when i try to register like a user in my app i face a BLASTBufferQueue error i used in my project firebase for my database idk where is the source of problem i checked graphic driver, OpenGL version, network ..... but nothing change can someone help me it's my final project of year
Thank you so much ❤❤
@CodesEasy
20 күн бұрын
Always welcome
@gamingtomusic7700
20 күн бұрын
Can you add video for real-time database firebase please
I'm getting issues while registering as soon as I tap on register the page gets out to the phone main screen
Thank you so much ❤❤❤
@CodesEasy
Жыл бұрын
Happy that you liked the video
I am having a problem connecting my project to firebase... I Could not find the Android Application module. Only Android Application Modules can be connected to Firebase online projects. Create a new Android Application Module or create/import a different Android Studio project.
in this project if we added delete account, we can delete it in firebase also ?
Hi sir I have a problem. When I click on the Click to Register button my app always crashes and i dont understand why
thanks for the tutorial😁
@CodesEasy
27 күн бұрын
You're welcome!
Thank You!♥
@CodesEasy
Жыл бұрын
You're welcome!
Hi!, i need your help.. whenever i tri- edit: I finally fix the issue, now it's working very well as the video intended, thank you teach!
Have anyone have a problem about the local host port, I did the same code but cannot run the apps😢
Hi, great work, i had a small problem and need a fix ASAP. Everything works fine and good but if i logout the account and try to sign in it doesnt work, although it is saved on firebase Authentication, and if u try to sign in it says "Login Failed" for some reason, i doubled checked the code everything seems good idk where is the problem!
@CodesEasy
Жыл бұрын
It could be an issue in registration or login. Check if the data entered from the register is correct in the firebase, then check login part
Great tutorial. One question. What version of Android Studio did you use?
@CodesEasy
Жыл бұрын
We always use the latest version of android studio
@KrishnaGupta-yc3jd
Жыл бұрын
obviously android eel
Hey bro great video, is it possible to check if the user already logged in when opening the app? Instead of doing the log in process every time you open the app so the last log in info is the already in the app even after you close it. Thanks ♥
@CodesEasy
Жыл бұрын
Yes, just use shared preferences.
Hello firstly thank for your content I have a question. If I have and playing part of my application and if I want to save the scores for every unique users what should I do after this registration and log in part I have small project but ı could not fix that part also I m using firebase for log in and register part
@CodesEasy
Жыл бұрын
You can either same it on the system or on the firebase
Sir it is showing as connected in authenticate in custom authentication system (connect your app to firebase)
@CodesEasy
Жыл бұрын
You have to establish a proper connection with firebase
it's very nice ,thanks man
@CodesEasy
Жыл бұрын
Happy that the video helped you
Thanks for your grate video
Hi, when I clicked connect to firebase (2:54) it didn't pop out a new window it only run a value.xml and show Can't determine type for tag '?attr/shapeAppearanceCornerSmall'. Do you know how to solve it? thank :
@CodesEasy
10 ай бұрын
Can you explain
@CodesEasy
10 ай бұрын
Join our WhatsApp group or discord channel for better discussion
This will allow user to login even with wrong passwods , how to allow access only with the password which is created in registration. It only check the email not the password how to solve the problem.🙏 thankyou now it is working..
@CodesEasy
Жыл бұрын
You should have made some mistakes while coding. Check the video once more and do it carefully
Really good video! Is there a way to confirm the registration by sending the user an email? Also, does the user get logged out automatically if the app is closed?
@CodesEasy
Жыл бұрын
The logout doesn't happen when the app closes, yes you can send an email for confirming email check google or chatgpt for the code.
@mabackma7042
Жыл бұрын
@@CodesEasy Thanks
Sir whenever i register in the app my app crashes but in firebase data is saved and i have to delete the app storage and cache memory to open it again. What could be the problem?
@yashvardhansagar5792
6 ай бұрын
Getting this error: FATAL EXCEPTION: main Process: com.example.medify, PID: 14230 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.medify/com.example.medify.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3782) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3922) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2443)
@CodesEasy
6 ай бұрын
Check logcat while running. You will get the exact issue. It could be some uninitialised objects or mismatch in class import or class names for the object etc.
@hanimedaily
5 ай бұрын
I'm facing the same issue, whenever I click any button, the app crashes
@Raagabomb
5 ай бұрын
I guess you didnt added the file in manifest
@nishantpatil7024
3 ай бұрын
Us bhy us
Hello, I am getting two errors : 1. Incompatible types : FirebaseUser cannot be converted to Firebase:30 2. Cannot find symbol method getEmail():37 Can you plz help ?
@CodesEasy
9 ай бұрын
You might have made a mistake with the object. Check the part where the object is initialised.
@hanimedaily
5 ай бұрын
Did you update the versions in the gradle files?
Hi dude . Even after implementing the required dependencies for the project . while typing the dependency name in xml file it shows error and not even showing suggestions .. why it is so ??
@CodesEasy
Жыл бұрын
Try clear build and invalidate cache and restart from build and file menus
hi i need ur help i having a problem i follow ur video but i having error in the app after enter email and password to register it says i having a Authentication failed
@geethanjalisk928
3 ай бұрын
Where u able to solve?
@GlacierPlazZz
2 ай бұрын
How to solve plz reply 😢
@GlacierPlazZz
2 ай бұрын
Pls reply bro urgent
Something went wrong when trying to do it with having Login as Fragment and not Activity. I guess i will have to rebuild Register from activity to Fragment and operate on fragments. Or maybe turn Login from Fragment to Activity? I wanted to use sidebar menu and mix Fragments with Activities but now i consider doing all in Fragments :/ What would be your suggestion? All started because clicking Register textView(in Login Fragment) don't work at all.
@CodesEasy
Жыл бұрын
Yes there will changes if you are using fragments. Switching fragments different from switching activity. And you have to pass context and some other related things.
@CodesEasy
Жыл бұрын
But ofcourse the main content will same.
@Raf99
Жыл бұрын
Nevermind! In OnCreateView of my Fragment i had to use "return view;" instead of "return inflater.inflate(R.layout.fragment_item_list, container, false);" I don't know why but this prevented Onclicks from working. Also i can actually move between fragments and activietis with ease :)
Sir, how to implement the "Forgot password" button ? Please make a video on that 🙏
Tysm ❤
@CodesEasy
6 ай бұрын
👍
I have a problem!! Could not identify launch activity: Default Activity not found Error while launching activity Failed to launch an application on all devices
@CodesEasy
Жыл бұрын
Go to manifest and set login activity as launcher
Thank you sir❤
@CodesEasy
11 күн бұрын
Most welcome
Hello sir, when i click register it shows authentication failed. I have previously used SQLite in my project but I've put all my SQLite code as commentary but it doesn't seem to work with Firebase. Do you know why ?
@CodesEasy
Жыл бұрын
I would recommend you to try creating a new project and follow the video exactly. And then also if you are facing issues download the source code from description
@BlazeVanguardGaming
Жыл бұрын
Bro you need to activate authentication phone number if auth option disable it's can't work
Hi. I followed this video perfectly and suddenly. When I launch the app on my device I only get a white screen. Also inside of Android Studio the design tab is empty for all of my activities. Any idea what is causing this?
@CodesEasy
Жыл бұрын
This would be some sort of mistake like you opened a different project or your old project got deleted. Something like that.
when I want to connect to firebase the notifications show that it couldnt find registrable android clients in project, how to solve that?
@CodesEasy
Жыл бұрын
It could be build variant issues, debug and release
im still getting authentication fail when i register on email and password
Sir if user is already loged in then why the app everytime ask for email and password, When i open the app. For solve this provlem what i can do.
@CodesEasy
6 ай бұрын
Use share preferences
Helpful. Keep it up. Thank you.🎗
@CodesEasy
Жыл бұрын
Happy that you liked the video
you da best ♥
@CodesEasy
Жыл бұрын
Happy that the video helped you
anyone got error in gradle for authentication as soon as am clicking connect firebase am getting this error
@CodesEasy
8 ай бұрын
What is the error message
@suzukimax100r9
7 ай бұрын
In the register page as we came in ... We had typed username and password and after clicking the register button the authentication failed toast is raising couldn't able to register in firebase
@GlacierPlazZz
2 ай бұрын
@@suzukimax100r9same problem pls reply, how to solved it
@jeremysilas3743
2 ай бұрын
Have you settle?@@suzukimax100r9
Can you make that with 2 level of access, I mean for instance (admin and client) for admin after login, it should go to another page.
@CodesEasy
Жыл бұрын
Sure. You just have to add some field like user type.
@qaisalomrani3900
Жыл бұрын
@@CodesEasy in singup page?
Hey man, Ive gotten right to the end of the video and textView = findViewById(R.id.user_details); at 31:10 is not an option for me. Do you know what I've done wrong?
@CodesEasy
Жыл бұрын
What's the issue you are seeing
Can someone help me, when i go to tools bar i dont have firebase.
@CodesEasy
7 ай бұрын
Check if your installation is done properly. Do invalidate cache and restart.
Where I can see those all data ?? Please help me
great video!
@CodesEasy
7 ай бұрын
Glad you enjoyed it
Ty so much.
@CodesEasy
Жыл бұрын
Happy that the video helped you
I keep getting TextInputLayout "Failed to instantiate one or more class" why is TextInputLayout not instantiated?
@CodesEasy
Жыл бұрын
Check this. stackoverflow.com/a/52692845
Hi great video. Can you make an application which admin can upload video using firebase and show it using recycler view
@CodesEasy
Жыл бұрын
Sure
While running it's showing the following error: Could not get package user id: run-as: unknown package: com.example.login
@CodesEasy
Жыл бұрын
You done some changes in the package name after creating the project
Amazing!
@CodesEasy
9 ай бұрын
Thank you! Cheers!
why is mine not working? pls help me i already finnished all but after i register/log in the app keeps closing
@CodesEasy
Жыл бұрын
Check the logcat while running you will find error there
Thanks man
@CodesEasy
Жыл бұрын
You're welcome!
hey man, thats not working for me, pops up auth failed. i saw from the logs and find out error that "The email address is badly formatted". i tried to solve it by searching from the internet where people say i need to add android:inputType="textEmailAddress" into my xml file, but still thats not working tho, idk what to do now
@CodesEasy
Жыл бұрын
Check if you have made any mistakes, if required you can also download the source code from description
@sselluos
Жыл бұрын
@@CodesEasy checked everything believe me
@sselluos
Жыл бұрын
@@CodesEasy nah dont say about ur code in the description, its not free
@clashhub_
9 ай бұрын
same problem dude.. did you solved it ? @@sselluos
@JeRrYyellow
8 ай бұрын
hey did you manage to solve it? same error for me @@sselluos
I am Having An Issue On 14:52 36:32 Register.this is not Being Recognised Same Applies to Login.this Kindly Assist Me 🙏🙏
@CodesEasy
Жыл бұрын
What is the error message
@gakuruvictor1276
Жыл бұрын
@@CodesEasy I Finally Figured it out I was Supposed to Put my activity name instead of yours Thank You Very Much You're a Real life Hero
when I press "Add firebase authentication SDK to app" nothing happens, i dont get an error but nothing gets added to the build.gradle.kts file. Please help
@jordan23tornot
Ай бұрын
i have a same error
Muchas Gracias!
@CodesEasy
8 ай бұрын
Glad it helped
please help me i m getting caused by null pointer exception on set on click listner please reply me
@CodesEasy
11 ай бұрын
Check the object you might have not initialised it
Great vid, But i've had a problem whenever I'm clicking login and register button the app closes.
Hello, could you please provide more details about the issue you're facing with your application? I'll do my best to assist you.
@CodesEasy
Жыл бұрын
👍
@hanimedaily
5 ай бұрын
App just crashes whenever I press a button🤕
I followed all the steps the same in this video but when I run it shows black screen and return to the first page of my project
@CodesEasy
Жыл бұрын
There will be error occurred when you did it. Check the video once more carefully and do it
@shakthi3091
Жыл бұрын
@@CodesEasy sir I'm used constraint layout but you used linear layout. Is this the problem ?
the best 👑
@CodesEasy
2 ай бұрын
👍
when i clicked the register button, it says failed, but i followed your instruction, can you help me fix it?
@CodesEasy
10 ай бұрын
There should be some mistake then, missing one step or making a small error could cause this. Watch the video once more carefully, you can also download the source code from the description if required.