3 ms·
Totally agree, you shouldn't (and don't) have to use a lib like easygoogle to get Google Sign In implemented correctly on Android! In the multi-activity situat
by habosa 11y ago
Totally agree, you shouldn't (and don't) have to use a lib like easygoogle to get Google Sign In implemented correctly on Android!
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 https://github.com/googlesamples/google-services) and I'll answer it.