通过广播接收器接收电子邮件 [英] Receive emails via broadcast receiver

查看:84
本文介绍了通过广播接收器接收电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个仅包含一个硬编码电子邮件地址的应用程序,该电子邮件地址将接收并回答响应中的问题.仅电子邮件正文是必需的.它将绕过电子邮件客户端选择器,以纯文本格式发送回应用程序以供阅读.

I am creating an app that has only a single hard coded email address that will receive and respond to questions with the response. Only the body of the email would be necessary. It is being sent back to the app in plain text to be read, bypassing the email client picker.

我的问题是这个:这甚至可能做到吗?大约3个月以来,我一直在寻找解决方案,甚至谷歌都不知道该解决方案的答案.

My question is this: Is this even possible to do? I've searched high and low for the solution to this about 3 months now and even Google doesn't know the answer to this one.

推荐答案

是否可以接收电子邮件的内容

Is it possible to receive the contents of an email message

当然,欢迎您编写自己的POP3或IMAP4客户端,因为几乎可以在任何操作系统上使用.当然,也欢迎您查看是否有用于Android的附带电子邮件客户端,这些客户端提供了可访问电子邮件的设备上API.

You are certainly welcome to write your own POP3 or IMAP4 client, as you could for just about any operating system. You are also certainly welcome to see if there are any fringe email clients for Android that offer an on-device API that offers access to email messages.

否则,不会.

关于接收电子邮件,似乎没有人知道如何做.

When it comes to receiving an email, it doesn't seem like anyone knows anything about how to do that.

那是因为关于电子邮件,Android并没有太多特色.电子邮件不是操作系统的一部分.电子邮件是应用程序提供的东西.

That is because there is nothing much Android-specific about email. Email is not part of the operating system. Email is something provided by apps.

这篇关于通过广播接收器接收电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆