使用 Android 发送新电子邮件通知 [英] Notification on new Email with Android

查看:43
本文介绍了使用 Android 发送新电子邮件通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让应用在收到新电子邮件时收到通知?我的目标是,如果收到具有特定主题的电子邮件(将其视为过滤器"或规则"),则发出警报(播放声音、振动等),但我不想查看电子邮件本人服务器.我想我正在搜索android.telephony.PhoneStateListener"之类的东西,但要搜索电子邮件.

is there a way for an app to get notified when a new email has been received? My goal is, to rise an alert (play a sound, vibrate, whatever) if an email with a specific topic gets received (think of it like an "filter" or a "rule"), but I dont want to check the email server by myself. I think I'm searching for something like "android.telephony.PhoneStateListener" but for Email.

推荐答案

抱歉,没有新电子邮件"的通用概念.Gmail 有自己的电子邮件数据库和管理,电子邮件应用程序有另一个,其他电子邮件应用程序可能有自己的.

Sorry there is no general concept of "new email." Gmail has its own email database and management, the email app has another, and other email apps may have their own.

当然没有与电话子系统相关联的电子邮件服务器".

And there is certainly no "email server" associated with the telephony subsystem.

这篇关于使用 Android 发送新电子邮件通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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