Sign out from google and facebook in android application

0 votes
I have merged the Facebook and Google sign-up processes utilizing their own workflows. But after signing successfully, I want to start a separate activity, and the user can do the same for a number of other activities. I've utilized an action bar to provide users the option to log out of either of their logged-in accounts. How do I sign the user out if I'm engaged in anything else from the main activity? I'm getting an exception and can't transmit the session reference for Facebook and the API client reference for Google to another activity. Thank you. I appreciate it.
Nov 14, 2022 in Android by Edureka
• 12,690 points
487 views

1 answer to this question.

0 votes
Just for the record. This is how I've signed a user out of a HomeActivity that isn't LoginActivity. The signOut() function in the LoginActivity must be called either from the onCreate() or onStart() method, and the LoginActivity must be started from another Activity (in my example, HomeActivity) when you want the user to sign out.
answered Nov 15, 2022 by Edureka
• 13,620 points

Related Questions In Android

0 votes
1 answer

How to open the Google Play Store directly from my Android application?

If you want to link to your ...READ MORE

answered Nov 7, 2022 in Android by Edureka
• 12,690 points
4,359 views
0 votes
0 answers

How to open the Google Play Store directly from my Android application?

I have open the Google Play store ...READ MORE

Nov 23, 2022 in Android by Ashwini
• 5,430 points
728 views
0 votes
0 answers
–1 vote
0 answers

Android Open and Save files to/from Google Drive SDK

I've been poring at Google documents for ...READ MORE

Dec 10, 2022 in Android by sarit
• 1,830 points
446 views
0 votes
1 answer

Error: IllegalArgumentException: Unable to locate adb in Android Studio v2.3

when you try to move an Android project ...READ MORE

answered Dec 16, 2020 in Others by Gitika
• 65,770 points
2,537 views
0 votes
1 answer

How to take a screenshot of a current Activity and then share it?

For me, I captured and then shared ...READ MORE

answered Feb 8, 2022 in Others by Soham
• 9,710 points
1,102 views
–1 vote
1 answer

"Default Activity Not Found" on Android Studio upgrade

If you see that ERROR occurrence after ...READ MORE

answered Feb 11, 2022 in Others by Soham
• 9,710 points
1,245 views
0 votes
1 answer

Invoke-customs are only supported starting with android 0 --min-api 26

After hours of working on this probleme, ...READ MORE

answered Feb 16, 2022 in Others by Soham
• 9,710 points
3,388 views
0 votes
1 answer
0 votes
1 answer

How get permission for camera in android.(Specifically Marshmallow)?

To begin with, confirm that the user ...READ MORE

answered Nov 8, 2022 in Android by Edureka
• 13,620 points
3,757 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP