looking for Android Gmail SMTP Oauth example

后端 未结 2 1509
[愿得一人]
[愿得一人] 2020-12-17 06:39

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

I am new to Java and Android and am having a hard time working this out. I

相关标签:
2条回答
  • 2020-12-17 06:56

    I actually asked if there was a "production quality" OAuth implementation around in another question:

    Is there a production quality OAuth sample for Android?

    Looks like that example I linked to is the best that's floating around. I've ended up having to tweek it a bit to make it really work as expected (have the back button work as expected for example). The best technique I've been able to dig up so far is to have the activity which launches the OAuth activity set as singleTask, and when you swap back to it from the OAuth activity set the FLAG_ACTIVITY_CLEAR_TOP flag in the intent.

    0 讨论(0)
  • 2020-12-17 07:13

    XOAUTH and Android with source code:

    Implementing SMTP or IMAP XOAuth

    HTH

    0 讨论(0)
提交回复
热议问题