Skip to content Skip to sidebar Skip to footer

Access User Mails Via Gmail On Android

I am trying to access sent mails with gmail on an android app. I tried to follow this but I don't understand how to get the Gmail API instance. I also found two ways to connect: t

Solution 1:

What's the difference between them and which one should I use ? Is this the way to access user's mails with my app ?

Google Sign-in for Android is good for authentication purposes for your app. It does the heavy-lifting for you so you don't have to worry about authentication implementations.

However, if you intend to make calls to Gmail APIs like the Users.messages.list you've mentioned, Google Sign-in will not be enough. Components like authorization and scopes are added to the picture. So in your case, you need to start with the Gmail Android Quickstart as it details the steps you need to make successful calls.

Post a Comment for "Access User Mails Via Gmail On Android"