Looking for an example of Gmail SMTP Oauth

Why is it so hard to find an example of sending email on Android using Oauth and Google Mail?

I'm new to Java and Android, and it's hard for me to handle this. Is it possible?

I found this Gmail library (or POP3) for Android development

What are the links to this http://code.google.com/apis/gmail/oauth/code.html

But no working Android examples can be found anywhere.

I would do that. I have an application that sends email from a Gmail user account using this code.

http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android

But my users do not like to enter their Google password in my application. And I do not blame them. On this day and at an age, you might think that there would be a simple solution with many examples.

So, are there any examples there and I just skip them?

TIA

+2
source share
2 answers

XOAUTH and Android with source code:

Implement SMTP or IMAP XOAuth

NTN

+3
source

I really asked if there is an OAuth implementation of production quality in another question:

Is there an OAuth sample for product quality for Android?

This example seems to be the one I'm connected to - the best thing that floats. I had to twist it a bit so that it really worked as expected (for example, the return button works as expected, for example). The best technique I've been able to dig up so far is to have an activity that fires OAuth activity as a singleTask, and when you return to it from an OAuth operation, set the FLAG_ACTIVITY_CLEAR_TOP flag in the intent.

0
source

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


All Articles