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.
Asked
Active
Viewed 3,655 times
2 Answers
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