简体   繁体   English

Imap / Pop3通知Android

[英]Imap/Pop3 notification Android

I have been working on an email client in Android. 我一直在使用Android的电子邮件客户端。 I am using javamail API for connecting the IMAP and POP3 accounts and they are working quite well. 我正在使用javamail API来连接IMAP和POP3帐户,它们工作得很好。 The email client may hold several accounts. 电子邮件客户端可能拥有多个帐户。

I just want to know a) how should I implement new mail notification which needs to show up to the user. 我只想知道a)我应该如何实施需要向用户显示的新邮件通知。 b) Also what should I use to sync new emails? b)我还应该使用什么来同步新电子邮件?

Just need a right direction. 只需要一个正确的方向。

Thanks all 谢谢大家

您可以使用Service中 的NotificationManager来显示通知,并通过TimerTask每隔X分钟获取邮件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用IMAP / POP3协议在Android中提取邮件 - How to fetch mails in Android using IMAP/POP3 protocols 设置Jodd Imap或Pop3的超时 - Setting timeout for Jodd Imap or Pop3 使用JavaMail API时的Gmail Imap vs Pop3 - Gmail Imap vs Pop3 when using JavaMail API 如何从Gmail接收有关从IMAP / POP3禁用访问的电子邮件 - How to get emails from Gmail on disabled access from IMAP/POP3 我们可以限制只对一个端口或协议(例如POP3 / IMAP)起作用的socks代理吗? - Can we limit the socks proxy only impact on one port or protocol, like POP3/IMAP? 如何使用Java邮件永久删除Gmail中的电子邮件(POP3客户端和IMAP) - How to delete email permanently in Gmail using Java mail (POP3 Client & IMAP) 在不使用 IMAP 和 POP3 的情况下从 office365 收件箱中读取 email - Read email from office365 inbox without using of IMAP and POP3 为什么使用IMAP时JavaMail BodyPart.getInputStream()返回空流,但使用POP3时为什么不返回空流? - Why does JavaMail BodyPart.getInputStream() return an empty stream when using IMAP, but not when using POP3? 如何在Java中使用imap或pop3提取特定数量的电子邮件? - How to Fetch specific numbers of emails either using imap or pop3 in java? POP3:从POP3服务器接收邮件的最佳方法 - POP3: Best way the receive mail from POP3 server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM