Question

So i'm building a game and using Google Play Mobile Services

Everything is working well IF the player is signed in and has an internet connection, else he's continuously presented with the option to login on each page navigation.

My example:
Activity A (main screen), the player is presented with a sign in option, the player taps cancel and proceeds to navigate to Activity B (the gamePlay), here he is presented again with the sign in option.

Activity A and Activity B extend BaseGameActivity. I want it to work so that if the user chooses not to sign in or doesn't have an internet connection to not bug him again until next time he starts the app.

Was it helpful?

Solution

Found out that should have used fragments, not activities for this as activities disconnect you and connect you to the Play Mobile Services.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top