Notification on new Email with Android
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, vibrat开发者_如何学Pythone, 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.
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.
精彩评论