Firebase Android Tutorial - Part 2 - User Login

  Рет қаралды 175,699

Simplified Coding

Simplified Coding

Күн бұрын

Пікірлер: 179
@SimplifiedCoding
@SimplifiedCoding 6 жыл бұрын
Updated Firebase Authentication Tutorial with Improved Audio Check Here: kzbin.info/aero/PLk7v1Z2rk4hi_LdvJ2V5-VvZfyfSdY5hy Please Share
@faizsyed3051
@faizsyed3051 5 жыл бұрын
Hey done same But i cant launch my login activity its forcestopping What can i do ? Can u help ?
@soumyodeepto8422
@soumyodeepto8422 4 жыл бұрын
Sir you are one of the best and rarest youtubers who teach perfectly and extacly the concepts pls create a video series on firebase cloud messaging using php as the admin area through which we can target specific users and push notifications to them only
@nismosrt
@nismosrt 8 жыл бұрын
compared to every other tutorial i watched about android login... yours was by far the most easiest to understand with least amount of errors from other users as well. good job keep it up i hope your channel grows
@zenxd4993
@zenxd4993 7 жыл бұрын
Hey guys.. i want to thank u all from simplified coding ..u guys helps me alot in my project! Thank you so much !! 😊
@bite_beat
@bite_beat 8 жыл бұрын
This is extremely clear and helpful. Without any complications right to the point. Thank you and keep going man. The previous one was also great.
@ranmandlavi2056
@ranmandlavi2056 5 жыл бұрын
thank u dude literally the only video that has a functioning code thank you
@Xtremecarfan10188
@Xtremecarfan10188 6 жыл бұрын
Everything almost works perfect so far. Creates users, logs them in. If no user found it will send a toast to create one. But, when logged in I cannot sign out. I have to clear the data in the setting in order to get back to the MainActivity. I forgot to add I did not create a login activity, I simply wrote the code within the MainActivity. Anyone else with same problem? Edit: Apparently I win "dummy" of the year award. I never finished the end of the video where he fixes it lol.
@jasonakon
@jasonakon 7 жыл бұрын
perfect tutorial , thank u so much. 1) Question !! - why firebaseAuth.getCurrentUser() != null ? - this will straight open up the profile activity whenever u click the app instead of login or registering your account - i have removed it in order to log in my account first before getting into the app
@HBrsz
@HBrsz 8 жыл бұрын
19:52 RIP earphone listeners!!!!
@machtal1980
@machtal1980 8 жыл бұрын
Hagen Brooks yeah I'm really fucking jumpscare in that moment
@xavierlujan3826
@xavierlujan3826 8 жыл бұрын
my fkn ears
@SimplifiedCoding
@SimplifiedCoding 7 жыл бұрын
Sorry for the bad audio quality.. I improved the audio quality for the new videos. Sorry again :)
@amrdavid1977
@amrdavid1977 7 жыл бұрын
I had to use the earphones, because he is whispering. Than came that nightmare advertisement !. Oh my ears !. I wish i have read your comment before now !.
@yoapps137
@yoapps137 7 жыл бұрын
Very well explained. 1 request:- It would be very kind to show the set up for people who are using ECLIPSE. Also how many users of an App could Register? they could be millions!!
@CairgyMmapetla
@CairgyMmapetla 7 жыл бұрын
i doubt there will be new tutorials on eclipse, google is going with Android studio you might wana upgrade too. yes users could be millions, but the firebase free version is limited
@yoapps137
@yoapps137 7 жыл бұрын
Thnx Kago, I will accept your advice! Just another small Query... what if i have a small txt files eg.30-40kb, that need to be sent between users, do i use FireBase Storage for that?
@CairgyMmapetla
@CairgyMmapetla 7 жыл бұрын
yeah
@yoapps137
@yoapps137 7 жыл бұрын
Congratulations! Very Very well explained.... Just tell the Taxi-wallas to stop honking outside your house!!!
@tusharbhartiya1118
@tusharbhartiya1118 4 жыл бұрын
Bro u made my work soooooo simple!!!Thanks a lotttt!!!!
@sunilsaggitarius
@sunilsaggitarius 7 жыл бұрын
I need to implement custom authentication with a different username and not with email. Can you please provide a tutorial for this ?
@WayneBachan
@WayneBachan 7 жыл бұрын
Great tutorial, easy to follow and to the point!!
@sainaveendevarapalli8131
@sainaveendevarapalli8131 7 жыл бұрын
thank you so much ......we are always awaiting for your awesome tutorials
@techiegeek7717
@techiegeek7717 4 жыл бұрын
Such an awesome video! Please upload a video on uploading a file onto firebase.
@Terzaghi12
@Terzaghi12 7 жыл бұрын
Thank you so much, for this video and the other video, i made a login app with firebase, really thank you
@Selvakumar56
@Selvakumar56 4 жыл бұрын
Could you please post video on firebase authentication using microsoft login for android app. It will be very helpful.
@latheshs039
@latheshs039 8 жыл бұрын
Very helpful. Thank you. Please add some more concepts on firebase. Subscribed
@pianoLee-sx9dx
@pianoLee-sx9dx 4 жыл бұрын
Hello! Why do you put the finish() before the startActivity and not after it?
@aminasyeed9544
@aminasyeed9544 5 жыл бұрын
thanks man ...you are really a good explainer
@diyashaikh861
@diyashaikh861 7 жыл бұрын
My code is exactly the same as shown in the video. But the login is not working...where could i be making the mistake? Any suggestion would help me.
@ahmadbenos6223
@ahmadbenos6223 8 жыл бұрын
WORKED PERFECT!!! KEEP UP THE GOOD WORK :)
@sportslamedia
@sportslamedia 8 жыл бұрын
Great Tutorial. Can you please work on USSD code as well. I will appreciate that.
@priskarusalno822
@priskarusalno822 7 жыл бұрын
thank you for your firebase tutorials. it's really help me (:
@gaber9691
@gaber9691 5 жыл бұрын
Another great tutorial
@manohar_reddy_anugu
@manohar_reddy_anugu 8 жыл бұрын
awesome tutorial please continue the good work
@hanyuli4439
@hanyuli4439 8 жыл бұрын
Thank your very much. It's really helpful. You are my hero!!!
@ravincristiano
@ravincristiano 5 жыл бұрын
volume was low... overall nice vdo.. thumbsup.
@ahmedatia6818
@ahmedatia6818 7 жыл бұрын
excellent video , but i need users after login create posts and comments
@John-un1xy
@John-un1xy 8 жыл бұрын
Keep it up! Great tutorial! Subscribed
@motorheadbanger90
@motorheadbanger90 6 жыл бұрын
Does firebase have sessions? So that way if the user is inactive in the app for x amount of time, the session can end and the user will be logged out?
@melvinschultzpro9781
@melvinschultzpro9781 8 жыл бұрын
Very good tutorial ! Thank you !
@2ararpit
@2ararpit 7 жыл бұрын
hello , the logout button is not working in profile activity . i wrote same code but that button isn't working.
@tomaszpepera2077
@tomaszpepera2077 7 жыл бұрын
Hi, thanks for vid, could you explain when this block of code is executed? // ProfileActivity class -> onCreate if(firebaseAuth.getCurrentUser() == null){ finish(); startActivity(new Intent(this, LoginActivity.class)); } It means you are not logged in and are in a profile activity -> like deleting an account while logged in?
@nicolas90
@nicolas90 7 жыл бұрын
Can you do a tutorial for a chatsystem, where the messages are getting saved in a db?
@YasirAli-ue3cz
@YasirAli-ue3cz 7 жыл бұрын
well done dude... good tutorial
@rhyspayne1767
@rhyspayne1767 7 жыл бұрын
I have followed your code exactly but when i click the button to go to log in sceen it doesnt go anywhere. Any help?
@oscarorozcomolina5473
@oscarorozcomolina5473 7 жыл бұрын
Hi i got a question, how could i do if i want to show an message that "that user alrready exists"? using the firebaseAuthentification, thanks
@firebasebuddy5080
@firebasebuddy5080 7 жыл бұрын
how to use two googlejson files.I want to to gmail integration as well as use firebase in android app. Two files are overriding each other..but i want to use both separetely.......tell me any solution.
@KaranChecker
@KaranChecker 7 жыл бұрын
Do you test your code for negative scenarios? 1. Login with a non existant user credential? 2. Registering with an already existing email? I feel that your style of writing is resembling how most Indian programmers write code. You are rushing to get the prototype working without focus on completion of code or managing the unusual but probable case. A generic other question about Firebase Auth is - can we restrict one user credential to be logged in only via one device and automatically logout the user from the previously signed in devices? And the opposite of that, is if possible to be logged in via multiple devices at the same time and be able to identify those sessions individually.
@SimplifiedCoding
@SimplifiedCoding 7 жыл бұрын
I will take care of these things. Thanks for notifying. Though the video is for beginners who are learning. But thanks for your suggestions.
@nagarjunareddyjogu7613
@nagarjunareddyjogu7613 7 жыл бұрын
nice work sir
@divyanshuverma8550
@divyanshuverma8550 8 жыл бұрын
Please make the tutorials for realtime database on firebase.
@Mrshubhamtyagi
@Mrshubhamtyagi 8 жыл бұрын
great tutorial... just need a little help... what if i want to store some additional information in the registration activity...like customer's name, mobile_no etc along with the username and password...and when the customers sign in...i want to display all that information....
@saadbinwaheed396
@saadbinwaheed396 7 жыл бұрын
You can use Firebase Database to store all the information you want.
@suryaramiah5853
@suryaramiah5853 8 жыл бұрын
great tutorial please upload other firebase related video asap
@vkxmflti
@vkxmflti 7 жыл бұрын
Hi! Do you know how to separate two different user in firebase android?
@olivermajor9955
@olivermajor9955 8 жыл бұрын
i have a problem. When I test my app and I click the login button, the app crashes and I followed your code to the tea. Please help. Thanks
@SimplifiedCoding
@SimplifiedCoding 8 жыл бұрын
Check logcat for exact error
@rikzman4
@rikzman4 7 жыл бұрын
hello very nice tutorial, but wheneven i login, the page take me to the registraion page can you help please ?
@hodgepodgetv7844
@hodgepodgetv7844 7 жыл бұрын
Hi there, I'm having crashes on my app everytime a new activity is started. Its saying I can't cast to it in the log. It happens on both Emulator and my Android device. I have tried changing the way the activity is changed but it still crashes. Please advise?
@root-kwt5132
@root-kwt5132 6 жыл бұрын
If you press ctrl + enter It will enter but it will keep the typinghair the same place
@sonukharod4864
@sonukharod4864 6 жыл бұрын
I have an app connected with admob but i want to connect with firebase ...please tell me what and how i do
@DilukChathuranga
@DilukChathuranga 8 жыл бұрын
Thanks bro learned a lot :)
@theadfuntage6210
@theadfuntage6210 7 жыл бұрын
thanks bruh, lets go to next step ;)
@Mrshubhamtyagi
@Mrshubhamtyagi 8 жыл бұрын
please make a tutorial on retrieving data in another activity...
@sumeetbhujang2756
@sumeetbhujang2756 6 жыл бұрын
Please make video on how to record the login time in firebase
@deanmurray7626
@deanmurray7626 8 жыл бұрын
What about using the Login activity?
@herless5239
@herless5239 7 жыл бұрын
How do you implement the onClick method with the Override? Because in my console i have to write it myself, please i need help!
@SimplifiedCoding
@SimplifiedCoding 7 жыл бұрын
alt + enter
@yahyaakilamad9113
@yahyaakilamad9113 7 жыл бұрын
It freeze's on Please wait progress dialog for log in and does not go to profile activity however it works when I register a new user and it goes to profile activity. HELP!
@aakashrami8917
@aakashrami8917 7 жыл бұрын
Hey i tried and only gives this error FatalException :main java.lang.NullpointerException Bcz of this error everytime my login activity crashes.. Plz plz help.
@movieclips2346
@movieclips2346 7 жыл бұрын
Hello akash , just check whether the ids for buttons, edit text and text views are same in xml and java files . while checking keep note of the capital and small letters.
@danbouh
@danbouh 7 жыл бұрын
When i write my email and password in register page it just says Registing in then does nothing autho in firebase or save data and the code is not error all is Ok why ?
@weaq321
@weaq321 7 жыл бұрын
Con madre!!! You are the best. :)
@monikapiechatzek4733
@monikapiechatzek4733 8 жыл бұрын
worked perfect for me thank you!
@saketkumarsingh709
@saketkumarsingh709 7 жыл бұрын
monika piechatzek plz help me I hv written same code bt when I click on register button app crashes
@oanaadriana3678
@oanaadriana3678 5 жыл бұрын
You saved me, thanks :)
@SimplifiedCoding
@SimplifiedCoding 5 жыл бұрын
You should consider checking this new updated course Firebase Authentication Tutorial for Android - [ FREE COURSE ]: kzbin.info/aero/PLk7v1Z2rk4hhUCFBSnVTECda_MdTp3GnQ
@pro_mode14
@pro_mode14 7 жыл бұрын
what would happen if finish(); was not used in the function??
@anthonykeys7992
@anthonykeys7992 8 жыл бұрын
can you make a video like this but for facebook login
@jeraldjoshuaechavia1108
@jeraldjoshuaechavia1108 7 жыл бұрын
Hi~ @Simplified Coding, after trying to run the emulator right after I finish coding the ProfileActivity the emulator says "Unfortunately , MyApplication has stopped." what should I do?
@jeraldjoshuaechavia1108
@jeraldjoshuaechavia1108 7 жыл бұрын
by the way i'm using Android Studio 2.3.1
@jeffhan4119
@jeffhan4119 7 жыл бұрын
Did you checked ProfileActivity onCreaate function? if(firebaseAuth.getCurrentUser() == null){ finish(); startActivity(new Intent(this,LoginActivity.class)); }
@d3zar
@d3zar 4 жыл бұрын
why i couldn't understood nothing about the firebase realtime databases .? Can someone tell me how it's working .?
@saqibyounis5365
@saqibyounis5365 6 жыл бұрын
hi! first of all the tutorial was truly amazing and to the point. my question is if i want users to create an account by providing email and password and then redirect to the signin screen to again enter email and password and succesfully login to the userprofile just like it happens in other social media applications here when our user creates and account. they are directly redirected towards the user profile how can we let our users, first go to the signin page and then from there to the user profile page even i changed my code to and added signin.class in the intent from the signup page but it stills redirect to the userprofile because of i guess the following code in the signin class if (firebaseAuth.getCurrentUser() != null) { finish(); startActivity(new Intent(Signin.this, UserProfile.class)); }
@namansrivatava4323
@namansrivatava4323 5 жыл бұрын
so first you should do firebaseAuth.signOut(); then add the intent to go to the signin page
@TriedTastedJourney
@TriedTastedJourney 5 жыл бұрын
Thank you !
@asadrehman2642
@asadrehman2642 8 жыл бұрын
I don't have some of the multilines in Register Login like // does this happen when debug the app
@asadrehman2642
@asadrehman2642 8 жыл бұрын
plus I added a new field
@roshansalian692
@roshansalian692 7 жыл бұрын
unable to sign in from sign in page. Sign in button takes back to register page
@SidharthSreekumar
@SidharthSreekumar 7 жыл бұрын
Is there any reason why we the application here has 2 separate activities for login and registration. Can't we do it in the same activity if the only username and password are needed for registration? We just need to include both the method that handles login and registration in the same class. Am I right or is there something that I'm missing?
@SimplifiedCoding
@SimplifiedCoding 7 жыл бұрын
+Sidharth Sreekumar but for registration we call create user method and login we have signin method.. both methods are different.. so you can do it in the same activity with an additional input to detecr whether it is login or registration
@SimplifiedCoding
@SimplifiedCoding 7 жыл бұрын
+Sidharth Sreekumar anyways you can check this updated tutorial Firebase Authentication Android Tutorial: kzbin.info/aero/PLk7v1Z2rk4hi_LdvJ2V5-VvZfyfSdY5hy
@SidharthSreekumar
@SidharthSreekumar 7 жыл бұрын
Alright. Cool, I have just checked this out. For some reason the logout button is not working. I have given exactly the same code that you have used. I'll try to find a workaround. Will update on it later. Anyways thanks for the reply
@CyTyler
@CyTyler 8 жыл бұрын
Please upload Tutorial 3 for reset password and email .
@laarena3673
@laarena3673 8 жыл бұрын
Hello, great tutorial, but my app freeze after login
@DG-bq3oo
@DG-bq3oo 6 жыл бұрын
Can anyone tell me why the signup screen would load before the signin screen does?
@sabirquazi
@sabirquazi 7 жыл бұрын
it worked first . But now since I have updated android studio. Nothing works you can't even register new user nor access the old one!
@ahmadbenos6223
@ahmadbenos6223 8 жыл бұрын
the userLogin part isnt working!! im getting a red line under it!
@munishsanan1107
@munishsanan1107 5 жыл бұрын
excellent contents however sound is too low ,, ,, stress on my ears
@SimplifiedCoding
@SimplifiedCoding 5 жыл бұрын
Check this Firebase Authentication Android Tutorial: kzbin.info/aero/PLk7v1Z2rk4hi_LdvJ2V5-VvZfyfSdY5hy
@TechriderArun
@TechriderArun 6 жыл бұрын
when I'm on main page i click on "already have account Sign In" the it does not load login activity and it crashes every time
@vrushabhchitalia7773
@vrushabhchitalia7773 5 жыл бұрын
In the mainactivity.java you probably forgot to write the onclick method or you wrote it incorrectly.
@kunalkumar1680
@kunalkumar1680 7 жыл бұрын
The application is not working in the emulator. But its working fine in the phone. How make it work in emulator. What is the problem with emulator.
@SimplifiedCoding
@SimplifiedCoding 7 жыл бұрын
+Kunal Kumar update your emulator ... Google play service is needed to run this app
@vanditt7
@vanditt7 7 жыл бұрын
Thanks a lot! :)
@mohammedwasim2731
@mohammedwasim2731 7 жыл бұрын
The app keeps freezing while i run it. it shows blank screen. Help Please!
@benedictdevila9193
@benedictdevila9193 4 жыл бұрын
when i press register and log out it automatically force stop, please help
@chovaramsahu7814
@chovaramsahu7814 7 жыл бұрын
how to fetch data from server with notifiction using asyantask with click event
@nurbolseydazimov9394
@nurbolseydazimov9394 7 жыл бұрын
thank you dude :D
@rupeshpatil9644
@rupeshpatil9644 7 жыл бұрын
thanks a lot
@officialtopchefbeats
@officialtopchefbeats 6 жыл бұрын
PLEASE PLEASE PLEASE help me. I have restarted the same project at least 10 times now and each time when I get to the last page....al the R...turn red and it says link to resource not found, i have cleaned rebuilt and updated sdk and still all red on current project and every new one I do once im almost finished...please I am tired of creating new projects and new firebase projects just to try and complete a simple interface..Please, be helpful
@vrushabhchitalia7773
@vrushabhchitalia7773 5 жыл бұрын
Try to completely delete folder build Rebuild… And Android Studio creates this folder again
@ourContent314
@ourContent314 7 жыл бұрын
I am getting 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?
@wevertoyouvideo
@wevertoyouvideo 8 жыл бұрын
Thanks
@michab500
@michab500 8 жыл бұрын
awesome!
@leonardomichael5967
@leonardomichael5967 7 жыл бұрын
why always crashing when i open the app but when i make if(firebaseAuth.getCurrentUser() != null){ finish(); startActivity(new Intent(getApplicationContext(),signInActivity.class)); } as comment it will work but when i press sign in it crash again, please help
@viddictify
@viddictify 7 жыл бұрын
on your profileactivity, change it to ==null
@bejisan1
@bejisan1 6 жыл бұрын
but it's in Mainactivity.java that it appears red. 12:41
@bejisan1
@bejisan1 6 жыл бұрын
nevermind, I didn't put it in the onCreate method
@vrushabhchitalia7773
@vrushabhchitalia7773 5 жыл бұрын
@@viddictify That worked for me tysm!
@ahmedbarista5491
@ahmedbarista5491 8 жыл бұрын
anyone can help please . I'm having an error which says "FirebaseApp with name [DEFAULT] doesn't exist
@dnved7829
@dnved7829 8 жыл бұрын
part 3???
@suryaramiah.6425
@suryaramiah.6425 8 жыл бұрын
try to upload video as soon as possible otherwise u gonna lose your subscriber, because there are lots of youtuber doing the same thing
@nagarjunareddyjogu7613
@nagarjunareddyjogu7613 7 жыл бұрын
pls make a video how to add forgot password button
@GabeTwoThousand
@GabeTwoThousand 7 жыл бұрын
The worst part of this is that new android versions in the avd don't have google play store installed so i can't update google ad services to test the app. I have to export the app and install it to my phone just to test it. :/ Thanks for the convenience google. wouldn't need to update apps on the avd or anything *rolls eyes*
@erzitama1125
@erzitama1125 6 жыл бұрын
why after following part 2 I can't register but login successfully
@SimplifiedCoding
@SimplifiedCoding 6 жыл бұрын
Firebase Authentication Android Tutorial: kzbin.info/aero/PLk7v1Z2rk4hi_LdvJ2V5-VvZfyfSdY5hy
@malhartanksale3200
@malhartanksale3200 6 жыл бұрын
It is crashing at the starting. The first activity is not coming. what should i do?
@vrushabhchitalia7773
@vrushabhchitalia7773 5 жыл бұрын
In profileactivity set if(firebaseAuth.getCurrentUser()==null)
@varshauppala8820
@varshauppala8820 6 жыл бұрын
why am getting as unfortunately it has stopped
@awadheshkumar6967
@awadheshkumar6967 7 жыл бұрын
Firebase not initializing error, help me to solve initializing error
Firebase Android Tutorial - Part 3 - Saving in Firebase Database
7:53
Simplified Coding
Рет қаралды 125 М.
Firebase Android Tutorial - Part 1 - User Registration
22:03
Simplified Coding
Рет қаралды 484 М.
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 5 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 125 МЛН
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 6 МЛН
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
Login and Registration using Firebase in Android
36:33
Codes Easy
Рет қаралды 370 М.
#2 Firebase Authentication Tutorial - User Login
13:06
Simplified Coding
Рет қаралды 57 М.
Navigation In Multi-Module Android Apps - Why You're Doing It Wrong!
10:59
Functional Programming in 40 Minutes • Russ Olsen • GOTO 2018
41:35
GOTO Conferences
Рет қаралды 818 М.
Creating and Designing a Navigation Drawer in Android Studio
20:09
How to connect Firebase to Android Studio App  | 2024
5:19
Easy Tuto
Рет қаралды 60 М.
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 5 МЛН