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 in Android by Edureka
• 10,880 points
37 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 by Edureka
• 12,390 points

Related Questions In Android

0 votes
1 answer
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 in Android by Ashwini
• 2,760 points
18 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,890 points
1,774 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 in Others by Soham
• 9,670 points
55 views
0 votes
1 answer

"Default Activity Not Found" on Android Studio upgrade

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

answered Feb 11 in Others by Soham
• 9,670 points
363 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 in Others by Soham
• 9,670 points
1,102 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 in Android by Edureka
• 12,390 points
30 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