I would like my app to be able to respond when an email address is "sent" in an intent. for example, when a user clicks on an email address in the contacts app, the gmail and email apps show up. i'd like to get into that list.
my first attempt was to match on scheme="mailto",
<intent-filter>
<action android:name="android.intent.action.SEND" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="mailto" />
</intent-filter>
which did not work. next attempt was to match pathPattern=".@.".
<data android:pathPattern=".*@.*" />
this didn't work, and as the JD's say, that's only meaningful if the host, scheme is specified.
any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…