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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top