Android Question How: My app being selectable for sending email (in sendto dialog)

olivere

Member
Licensed User
Longtime User
Hi,

several apps allows to export data as csv or pdf - when choosing this option, a dialog with all email apps apperars, from which the user can select the app to send an mail.

Now my newbie questions:

a) how can I make my app to be displayed in the sendto-dialog of the phone ?
b) how can I retrieve the parameters (e.g. a file and/or to/subject fields) passed by the invoking app ?
c) How can I retrieve the name of the invoking app ?

Thank you
Oli
 

olivere

Member
Licensed User
Longtime User
Thank you Erel,

I found the solution: the trick was to add the mimeType (seems to be required):
B4X:
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>)

But how can I retrieve the name of the invoking app ?
 
Upvote 0
Top