On Android, I'm trying to intercept received emails in order to do something in my application.
To do this, I use intent in my application manifest:
<intent-filter> <action android:name="com.android.email.intent.action.EMAIL_RECEIVED" /> <action android:name="android.intent.action.VIEW" /> <data android:scheme="email" /> <data android:host="messages" /> </intent-filter>
It works great when I use the K9 email client.
But this does not work with the gmail application or with its own mail application.
I think I'm missing the right intention, do you have it?
Thanks in advance!
source share