How to integrate Gmail login in Android application?

What is the correct way to embed a Gmail login in an Android app?

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 a Gmail login to get user credentials. Someone please help me.

0
source share
3 answers

Official Guide: Google Login

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

Hope this helps!

+5
source

You want to use a Google account, not a Gmail account. See Log in with Google for the REST API and the attached example.

+1
source

If you use eclipse, you can use the sample example provided by Google itself.

Navigation

  • Create a new project

    New project for Android β†’ Android 5.0.1 β†’ auth> gau [Google Play Services, rev 22]

Go through it.

0
source

Source: https://habr.com/ru/post/1493369/


All Articles