1

I need to create the custom broadcast receiver,which notifies the arrival of new emails. That means when the new Email s received to the the already configured email account , then the intent will be fired. how can i find the arrival of new Email.I am Using Android_javamail API.

Artjom B.
  • 61,146
  • 24
  • 125
  • 222
Balaji.K
  • 8,745
  • 5
  • 30
  • 39

2 Answers2

0

This is not possible. There are no documented and supported broadcast Intents for Gmail. There are no broadcast Intents for the open source Email app. Third party email clients are not obligated to support any particular broadcast Intents.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
0

There is no easy answer to your question.

See this Notification on new Email with Android

I know that Gmail sends a ACTION_PROVIDER_CHANGED notification when the unread count changes.

You can browse this code to see how it's used, https://github.com/jonasl/GmailNotifier

Community
  • 1
  • 1
rochdev
  • 3,835
  • 2
  • 21
  • 18