android intent-filter to listen for sent email addresses?

前端 未结 1 815
梦如初夏
梦如初夏 2020-12-06 03:06

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

相关标签:
1条回答
  • 2020-12-06 03:53

    The Email app uses:

    <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <action android:name="android.intent.action.SENDTO"/>
        <data android:scheme="mailto"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
    </intent-filter>
    <intent-filter android:label="@string/app_name">
        <action android:name="android.intent.action.SEND"/>
        <data android:mimeType="*/*"/>
        <category android:name="android.intent.category.DEFAULT"/>
    </intent-filter>
    <intent-filter android:label="@string/app_name">
        <action android:name="android.intent.action.SEND_MULTIPLE"/>
        <data android:mimeType="*/*"/>
        <category android:name="android.intent.category.DEFAULT"/>
    </intent-filter>
    
    0 讨论(0)
提交回复
热议问题