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
  • 26,353
  • 15
  • 70
  • 71
Nevaeh
  • 1,519
  • 7
  • 24
  • 45

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!

Harin
  • 2,413
  • 3
  • 15
  • 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
  • 46,583
  • 10
  • 100
  • 152
Yash Sampat
  • 30,051
  • 12
  • 94
  • 120
  • 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
  • 385
  • 2
  • 9