问题
Can anyone tell me how to redirect email intent's back button to activity where send mail button is present. I was succeeded to send mail from my android app by using email intent.But I want the flow to be exists only in my app without opening mail inbox. Can anyone help me?
回答1:
If you want to send the email from your app you will have to implement IMAP or SMTP protocols in your application. There may be some third-party libraries available already
And if you're asking about behavior of the GMail app after it proceeds your intent, you can't alter it
回答2:
Yes it is possible for that you have to build the Php backend(webservice) for sending email, in that you can put subject,recipient address and message with that webservice.
来源:https://stackoverflow.com/questions/22679341/email-intent-back-to-activity