Tuesday, 15 April 2014

android - How to pass GoogleApiClient connections to another activity -



android - How to pass GoogleApiClient connections to another activity -

i want connect google play games in mainactivity pass mgoogleclientapi object gameactivity.

how go it?

plus! every time start mainactivity reconnects googleapiclient.

anything helps.

my suggestion be, if need connect google play games in main activity , in gameactivity, thing. there no need hand on clientapi instance.

i assume main activity kind of login , afterwards start gameactivity? utilize api connect in first place, handle login , start gameactivity. there connect api 1 time again , handle game relevant part.

or utilize fragments , hand on api client via public method in activity implements interface homecoming client.

android google-play-services google-play-games

No comments:

Post a Comment