Login and Registration using Firebase in Android
Vložit
- čas přidán 6. 12. 2022
- 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
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.
Really happy to to see the video helped you.
@@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
@@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
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 !!😍😍❤❤🙏🙏
Glad it helped
Thank you very much for the tutorial. Very simple, understandable and perfect. :D
Glad it helped!
Really Helpful. Nice explanation of coding with decent pace. All the best wishes.
Glad you liked it
thank you very much!! this video help me to create my first little peace of code, have a great day ❤️
Happy that the video helped you
Great tutorial - still relevant. Easy to follow even when using Kotlin instead of Java
Good job 👍
Thank you for your help and time. Wish you the best from Czech republic ❤
Happy that you liked it
Thanks Sir your teaching skill are insane its very easy to understand even for a beginner
Happy to help
Thanks man, it works and you explained well
Happy that the video helped you
Thank you soooo much. I have completed my first lesson of Firebase from you.
Glad to hear that
Thank you so much!
You can't even imagine how much you helped out)
Огромное спасибо вам!
Вы даже не представляете насколько сильно выручили)
Happy that the video helped you
Perfect and Simple Video. Learnt a lot from it. Thank you❤
Glad it was helpful!
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.
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.
Thank you for wonderful explaination. As firstly the app doesn't work because of some error but after fixing it, it work successfully.
Glad it helped
Thank you very much, you are the best teacher 👑 , I am really grateful to you
You are very welcome
Thank you for this very informative example.
Happy that the video helped you
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
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 brother, you followed the official documentation which helped me to understand it.
Glad it helped
Hi sir I have a problem. When I click on the Click to Register button my app always crashes and i dont understand why
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.
Its just a name change
@@CodesEasy thank you very much.
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?
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
Very helpful! thank you
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?
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
u have to clikc “empty views activity”
thanks, very helpful, greetings from Mexico
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..
👍
thank you!! really, i love you man.
THIS VIDEO IS AWESOME, DID EVEN REALIZE IT WAS ONLY 36 MINUTES
Saved me so much hours and made it look so simple
Happy that the video helped you 👍
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
Glad it helped
in this project if we added delete account, we can delete it in firebase also ?
I'm getting issues while registering as soon as I tap on register the page gets out to the phone main screen
Best content for android developer
Happy that the video helped you
Cool explanation. Thank You so much.
Glad it was helpful!
so helpful, thank you for your hard work
Glad it was helpful!
cleanest tutorial of user auth 👌👌
👍
thanks man , very helpful
Glad it helped
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!
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
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 ?
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
Bro you need to activate authentication phone number if auth option disable it's can't work
bro you da man
Happy that the video helped you
Have anyone have a problem about the local host port, I did the same code but cannot run the apps😢
Sir, how to implement the "Forgot password" button ? Please make a video on that 🙏
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.
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.
But ofcourse the main content will same.
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 :)
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?
This would be some sort of mistake like you opened a different project or your old project got deleted. Something like that.
Excelent Tutorial! Thank you very much!!!
You're welcome!
Great video, thanks heaps!
Happy that you liked the video ❣️
Thank u sir for good content ❤
thank you for master for teaching me the database
Happy to help
Thank you So much Bro, your video really helped
Glad it helped
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 ??
Try clear build and invalidate cache and restart from build and file menus
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 ♥
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
You can either same it on the system or on the firebase
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
Go to manifest and set login activity as launcher
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 ?
You might have made a mistake with the object. Check the part where the object is initialised.
Did you update the versions in the gradle files?
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?
What's the issue you are seeing
Sir it is showing as connected in authenticate in custom authentication system (connect your app to firebase)
You have to establish a proper connection with firebase
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 :
Can you explain
Join our WhatsApp group or discord channel for better discussion
Great tutorial. One question. What version of Android Studio did you use?
We always use the latest version of android studio
obviously android eel
While running it's showing the following error:
Could not get package user id: run-as: unknown package: com.example.login
You done some changes in the package name after creating the project
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.
Use share preferences
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?
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.
@@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?
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)
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.
I'm facing the same issue, whenever I click any button, the app crashes
I guess you didnt added the file in manifest
Us bhy us
Thank you so much, it worked perfectly
Glad it helped
Great vid, But i've had a problem whenever I'm clicking login and register button the app closes.
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!
when I want to connect to firebase the notifications show that it couldnt find registrable android clients in project, how to solve that?
It could be build variant issues, debug and release
Thank You!♥
You're welcome!
im still getting authentication fail when i register on email and password
I keep getting TextInputLayout "Failed to instantiate one or more class" why is TextInputLayout not instantiated?
Check this. stackoverflow.com/a/52692845
why is mine not working? pls help me i already finnished all but after i register/log in the app keeps closing
Check the logcat while running you will find error there
Thank you so much ❤❤❤
Happy that you liked the video
the best 👑
👍
hi!
Registration not work.
LogCat : Initial task failed for action RecaptchaAction(action=signUpPassword)with exception - A network error (such as timeout, interrupted connection or unreachable host) has occurred.
Whats wrong? :(
Check the video once more carefully
@@CodesEasy could you send me the 3 .java files?
I got the same error, did you fix it?
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
Check if you have made any mistakes, if required you can also download the source code from description
@@CodesEasy checked everything believe me
@@CodesEasy nah dont say about ur code in the description, its not free
same problem dude.. did you solved it ? @@sselluos
hey did you manage to solve it? same error for me
@@sselluos
Thanks for your grate video
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
Where u able to solve?
How to solve plz reply 😢
Pls reply bro urgent
it's very nice ,thanks man
Happy that the video helped you
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
i have a same error
you da best ♥
Happy that the video helped you
I am Having An Issue On 14:52 36:32
Register.this is not Being Recognised
Same Applies to Login.this
Kindly Assist Me
🙏🙏
What is the error message
@@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
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.
Sure. You just have to add some field like user type.
@@CodesEasy in singup page?
Amazing!
Thank you! Cheers!
when i clicked the register button, it says failed, but i followed your instruction, can you help me fix it?
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.
can not i check if my password or email who was wrong at the time of logging in?
Check your password most of the time this is where everyone makes mistakes. Passwords should be encrypted if you change anything you have to check everything and adjust it accordingly
anyone got error in gradle for authentication as soon as am clicking connect firebase am getting this error
What is the error message
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
@@suzukimax100r9same problem pls reply, how to solved it
Have you settle?@@suzukimax100r9
when i register it directly shows auth failed. how can i fix this?
You should have made some mistake, check the video once more
How to solve it plzz reply
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
There will be error occurred when you did it. Check the video once more carefully and do it
@@CodesEasy sir I'm used constraint layout but you used linear layout.
Is this the problem ?
Hi great video. Can you make an application which admin can upload video using firebase and show it using recycler view
Sure
Sir, it shows that "A failure occured while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction. What should I do? 😭
One, make sure everything is upto date. Android studio, sdk's, gradle, everything.
Then use clear build from the menu and then invalidate cache and restart
If these don't work try adding
org.gradle.jvmargs=-Xmx4608m
This to your gradle.properties file and build the project
Update the modules to the latest version in project structure
Hello, could you please provide more details about the issue you're facing with your application? I'll do my best to assist you.
👍
App just crashes whenever I press a button🤕
great video!
Glad you enjoyed it
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..
You should have made some mistakes while coding. Check the video once more and do it carefully
Helpful. Keep it up. Thank you.🎗
Happy that you liked the video
Tysm ❤
👍
Authentication running successful in emulator but when i build apk and install on phone then authentication is failed. What should I do
Most probably SHA mismatch
Thanks for the video but why is my app crashing...whenever I enter any value my app stops working
Check the logcat while running the app, you could find the error message
Thanks man
You're welcome!
hello sir, when i login my registered account it says "Authentication failed" always
You have made a mistake in one of the steps. Check the code and the firebase part once more. Watch the video carefully
You can also download the full source code from the description.
Launch successful but whenever i open app ,,it closes automatically.
How i can solve it??
Check logcat while running, you will see an error message. Most probably it will be un initialised object. Check the findviewbyid part etc