Android Question Filter Intent for Email Client app

Starchild

Active Member
Licensed User
Longtime User
I am trying to get my email client app to respond to SENDTO intents issued by other apps. I have read the tutorials but I can't get my email client app to do anything when I try sending an email from other apps such as clicking on a mailto link.
I tried using the following manifest entries (from android developer site) but receive an error at compile time.
AndroidManifest.xml:40: error: Error: String types not allowed (at 'type' with value '*/*').

B4X:
AddActivityText(Main,
<intent-filter>
    <action android:name="android.intent.action.SEND" />
    <data android:type="*/*" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
    <action android:name="android.intent.action.SENDTO" />
    <data android:scheme="mailto" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter> )

I have also tried other manufest examples but get no response from the client app.
I am working a little blind as I am still not really sure how it all comes together.
I have also read the examples on android developer site. Still unsure.
I thought I should expect the MAIN Activity to fire allowing me to interogate the Starting Intents for this activity, but they are always empty.
Any pointers towards getting my email client app to respond to email send actions from other apps would be appreciated.
thanks
 
Top