Android Question Firebase activity creation

Rajesh Krishnan

Member
Licensed User
Hello,
after login with google using firebase how to open to an activity page, could anyone please help on this, tried out with loading a activity after by giving an if user authenticated condition but nothing works like wanted.
Thanks
 

johndb

Active Member
Licensed User
Longtime User
Hello,
after login with google using firebase how to open to an activity page, could anyone please help on this, tried out with loading a activity after by giving an if user authenticated condition but nothing works like wanted.
Thanks
I'm unclear as what you are trying to accomplish. Could you please explain in more detail and post your relevant code?
 
Upvote 0

Rajesh Krishnan

Member
Licensed User
I'm unclear as what you are trying to accomplish. Could you please explain in more detail and post your relevant code?
Okay so i basically i am starting to create an app for student activities, of which i want to accomplish the following
1)Login using the firebase google login(which is completed)
2)after logging in i would want to go to a student page or basically another page once the login is complete, i followed the code example from this link https://www.b4x.com/android/forum/threads/firebaseauth-authenticate-your-users.67875/
in the example in this link what happens is the used once logged in displays the user name as hello:user name i want it to actually navigate to another page of my app once the login is accomplished.
 
Upvote 0

johndb

Active Member
Licensed User
Longtime User
Okay so i basically i am starting to create an app for student activities, of which i want to accomplish the following
1)Login using the firebase google login(which is completed)
2)after logging in i would want to go to a student page or basically another page once the login is complete, i followed the code example from this link https://www.b4x.com/android/forum/threads/firebaseauth-authenticate-your-users.67875/
in the example in this link what happens is the used once logged in displays the user name as hello:user name i want it to actually navigate to another page of my app once the login is accomplished.
Create another activity in your project and start the activity with StartActivity(<activity name>) in the Auth_SignedIn (User As FirebaseUser) sub in the example that you are using. Remember to save the user information in the starter service's process_globals so that you can access the user info in your<activity name> user page activity. You should post the code that you are trying to use and we can give you some further advice.
 
Upvote 0

Rajesh Krishnan

Member
Licensed User
Create another activity in your project and start the activity with StartActivity(<activity name>) in the Auth_SignedIn (User As FirebaseUser) sub in the example that you are using. Remember to save the user information in the starter service's process_globals so that you can access the user info in your<activity name> user page activity. You should post the code that you are trying to use and we can give you some further advice.
Thanks a lot sir, din get you that well, if i could have your mail id i could send the code since the file size is too large it is not getting uploaded
 
Upvote 0

johndb

Active Member
Licensed User
Longtime User
Thanks a lot sir, din get you that well, if i could have your mail id i could send the code since the file size is too large it is not getting uploaded
Send me a PM and I'll give you my email address but preferably you could post the project zip file using B4A's "Export to zip" so that other's could provide advice as well ;)
 
Upvote 0
Top