+ 5

Android-firebase app

I have created an login activity using Android studio and firebase and I am trying to login to the app(I have already entered userid and password in firebase website). Everytime I am trying to open the app it stops. I am attaching code(xml and java) for reference. I have run the code on Android studio. https://code.sololearn.com/cTUy1pLoNf6F/?ref=app

13th Jan 2019, 10:58 AM
harshit
harshit - avatar
7 odpowiedzi
+ 4
My Android knowledge is still limited and I have zero firebase knowledge so I don't believe I can help. I will attempt it anyway because I could get lucky.
13th Jan 2019, 5:04 PM
John Wells
John Wells - avatar
+ 3
John Wells please have a look at this
13th Jan 2019, 4:58 PM
harshit
harshit - avatar
+ 3
You're not complete the process 😑
14th Jan 2019, 10:38 PM
Hussaini Abubakar
Hussaini Abubakar - avatar
+ 1
I have tried that but it is still not working Talha Iqbal
18th Jan 2019, 9:53 PM
harshit
harshit - avatar
0
I am not sure if this is the problem but I think you should call the finish method AFTER (not before) calling the startActivity method. I think that calling the finish method before starting the other activity kills your current activity and therefore you cannot go from your current activity (which doesn't exist anymore) to the other i.e. the target activity.
15th Jan 2019, 12:22 PM
Talha Iqbal
Talha Iqbal - avatar
18th Jan 2019, 9:53 PM
harshit
harshit - avatar
0
Harshit, can you please share some error messages that you get when the app crashes? It can really help to know the cause. You can email the error messages' snapshot on my email: talhaiqbal801@gmail.com
19th Jan 2019, 2:26 AM
Talha Iqbal
Talha Iqbal - avatar