问题描述
我正在尝试开发一个小型应用程序,用于在Android平台上发送和接收电子邮件.目前,我一直在使用Javamail API尝试发送电子邮件.但是我认为如果我使用javamail实现我的应用程序,我将如何接收电子邮件并从我的应用程序收到我已收到的通知?这与Android上的Service和Provder类有关吗?我是android上的完整初学者.
I am trying to develop a small application for sending and receiving emails on the Android plataform. Currently i have been using the Javamail api trying to send an email. However i thought that if i implement my app using javamail how am i going to receive an email and get a notification from my app that i have recieved it? Is this having to do with Service and Provder classes found on Android? I am a complete beginner on android.
我也尝试过在这里找到的这段代码:
Also i tried this piece of code found here :
没有运气,因为应用程序无法正常工作.
with no luck since application does not work.
推荐答案
JavaMail也可用于从POP3服务器获取邮件.以此类为例: PopMailImporter.java ,尤其是importMails和importMail函数.
JavaMail can also be used to fetch mails from a POP3 server. As an example look at this class: PopMailImporter.java, especially the importMails and importMail function.
这篇关于在Android上开发电子邮件客户端应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!