0

Which is the right way to implement Gmail login in my Android application?

https://developers.google.com/gmail/api/quickstart/quickstart-java
or
http://www.javacodegeeks.com/2013/10/google-account-integration-in-android-login-with-gmail.html

I want to provide Gmail login for getting user credentials.Somebody please help me.

Andrey Korneyev
  • 25,929
  • 15
  • 67
  • 67
Nevaeh
  • 1,459
  • 6
  • 24
  • 41

3 Answers3

6

Official guide: Google Login

Also look at this very good tutorial with demo. Follow the steps to enable google login from developer console and download the code. AndroidHive Google+ login

Hope this helped!

Harry's Lab
  • 2,405
  • 3
  • 14
  • 30
1

What you want is to use a Google account, not a Gmail account. See the Authorizing with Google for REST APIs tutorial and the attached example.

abraham
  • 44,161
  • 9
  • 92
  • 140
Y.S
  • 29,283
  • 12
  • 91
  • 116
  • yeah.but i wanted to get a working example which i can use to refer.So i used this http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/ and it worked.Thanks for ur reply anyways :) – Nevaeh Mar 20 '15 at 12:32
0

If you are using eclipse then you can use the sample example provide by Google itself.

Navigation

  • Create New Project

    New Android Sample Project - > Android 5.0.1 -> auth > gau [Google Play services,rev 22]

Go through it.

Chitresh Verma
  • 377
  • 2
  • 9