Show HN: Add GCM to your Android app in 5 minutes
github.com
github.com
* Google Sign In
* Google App Invites (email/sms user-to-user invites)
* Google Cloud Messaging (my favorite since it's hard to get right)
* SmartLock for Passwords (cross-device password sync, used by Netflix, NYTimes, and others)
Would love feedback, and PRs are welcome!For example : login in a first loginActivity then logout in another. Am I supposed to keep the GoogleApiClient somewhere at Application scope or to recreate it in each screen where I want to interact with it ?
In the multi-activity situation you will want to re-instantiate your GoogleApiClient in each Activity. If you use the function enableAutoManage that keeps it pretty lightweight, you don't need to implement ConnectionCallbacks (since the new API does not have the notion of connection == signed in) and you can have a one-line implementation of OnConnectionFailedListener.
If you have a question about any of this, raise an issue on this repo (https://github.com/googlesamples/google-services) and I'll answer it.