[英]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.