android_sign_in_sample icon indicating copy to clipboard operation
android_sign_in_sample copied to clipboard

Android sign in sample

Features

  • Google+ sign in
  • Google+ log out
  • Google+ revoke permissions

Screenshots:

Alt text . Alt text

Google stuff:

First of all, to access to the google+ integration api you have to create a new project in the https://code.google.com/apis/console and generate a new access key.

In the services section you have to activate the google+ api toggle.

Alt text

After that, access to the section Api Access to generate the access ID to the service,

Alt text

in the client ID dialog you have to put your debug signature key, you can generate a SHA1 certificate with:

{YOUR JDK PATH}/Contents/Home/bin/keytool -list -v -keystore {YOUR USER FOLDER}/debug.keystore

in my case....

/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/bin/keytool -list -v -keystore /Users/lolete/.android/debug.keystore

the project has been build with android studio and gradle, to get all necesary dependencies, first you have to download the google repository that you can find in the sdk manager, after, you have to put this line in your build.gradle file, in my case is the 3.1.36 version of google play services.

compile 'com.google.android.gms:play-services:3.1.36'

You can see your available play services versions in your sdk folder:

{YOUR ANDROID STUDIO INSTALL}/sdk/extras/google/m2repository/com/google/android/gms/play-services

__

Refs

  • https://developers.google.com/+/api/moment-types/
  • http://www.sgoliver.net/blog/?p=4150