Google Sign in with android Studio
Try this :
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
// Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...);
if (requestCode == REQ_CODE) {
GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);
handleSignInResult(result);
// G+
Person person = Plus.PeopleApi.getCurrentPerson(mGoogleApiClient);
System.out.println("Display Name: " + person.getDisplayName());
System.out.println("Gender: " + person.getGender());
System.out.println("AboutMe: " + person.getAboutMe());
System.out.println("Birthday: " + person.getBirthday());
System.out.println("Current Location: " + person.getCurrentLocation());
System.out.println("Language: " + person.getLanguage());
}
}
New Google Sign-In API - refresh token
I ended up using the old GoogleSignInApi's silent sign in feature for this. I've tested and if I use the New Google Sign In api for the sign in, the old one will still be able to perform the silent sign in.
It would be nice, if the new one had this silent sign in feature, but for now it looks like if you would like this "refresh" feature, you're still required to use the old api.
Google sign-in does not work for Fitness API on Android
hi @piet90 I was able to work around the issue, I followed this: https://github.com/android/fit-samples/issues/58
I think it works in all cases, you need to delete your project in Google Console and recover it after.
Related Topics
Prevent Status Bar for Appearing Android (Modified)
Dialogs/Alertdialogs: How to "Block Execution" While Dialog Is Up (.Net-Style)
How to Disable the Clear Data Button in Application Info of Manage Application
Programmatically Check Play Store for App Updates
Misbehavior When Trying to Store a String Set Using Sharedpreferences
How to Set Dialog to Show in Full Screen
Android Studio Emulator Does Not Come with Play Store for API 23
How to Read Value from String.Xml in Android
Pop Up Window Over Android Native Incoming Call Screen Like True Caller Android App
Best Place to Close Database Connection
How to Add a Dropdown Item on the Action Bar
Android Imagebutton with a Selected State
Android - How to Set the Wallpaper Image
Initializing Games Client in Android
How to Change Endianness Mid-Execution on Arm (Android/Linux)
Searchview in Listview Having a Custom Adapter
Difficulties with Calling an Android Ndk Function from Directly Delphi
How to Request Permissions from a Service in Android Marshmallow