Preventing automatic sign-in when using Google+ Sign-In

Update The best supported way to prevent automatic sign-in is to use the API method gapi.auth2.getAuthInstance().signOut() which will prevent automatic sign-in on your site after it has been called. Demo here. In the demo, the user is signed out when they leave the page as shown in the following code: window.onbeforeunload = function(e){ gapi.auth2.getAuthInstance().signOut(); }; … Read more

How to correctly use Google Plus Sign In with multiple activities?

Reconnecting for each activity is absolutely fine. Broadly there are 3 ways I’ve seen of people implementing this: Implement mostly in a baseactivity, and have the others extend that. This is connect/disconnect in each activity, but with code in only one place. Implement connect/disconnect in a fragment, and include that in activities where auth is … Read more

The signing fingerprint you specified is already used by another Android OAuth2 client

This error occurs when there is an existing SIGNING CERTIFICATE FINGERPRINT (SHA1) on Google Developers linked to a different account. Solution is to delete the project that is using that SHA1 in console.developers.google.com for the old/incorrect project. You cannot change the SHA1 fingerprint once it is set. Remember that deleting the project takes 7 days … Read more

How to get all comments on a YouTube video?

Believe me it works https://www.googleapis.com/youtube/v3/commentThreads?key=******************&textFormat=plainText&part=snippet&videoId=kffacxfA7G4&maxResults=50 Key will be provided by the google developer console and 50 denotes 50 comments in form of a json, video id is the id of the video. For any type of queries comment below.

Retrieving a user’s public google/gmail picture

Is very easy http://picasaweb.google.com/data/entry/api/user/<hereYourUserIdOrYourEmail>?alt=json just has a little problem. You only can get the picture of your Google+ profile, not directly from your gmail. UPDATE: This API is being deprecated and will be turned down in January 2019. Migrate to Google Photos Library API as soon as possible to avoid disruptions to your application. More … Read more