Android Question How do I send additional intent info to GMAIL from my app?

thughesimsuk

Member
Licensed User
Longtime User
Hi all, thanks for taking the time to check out my issue :)

Ok, I have the following sub

B4X:
Sub Mail_Merge_Click

Dim i As Intent

i.Initialize("", "")

i.SetComponent("com.google.android.gm/.ComposeActivityGmail")

i.PutExtra("EXTRA_SUBJECT", "Custom Subject")
i.PutExtra("EXTRA_TEXT","Custom Text")

StartActivity(i)

End Sub

This works as much as opening the gmail application from within my own application but the extra fields don't work? any ideas

My ultimate solution is to have gmail open with a custom subject and body of text. What would be amazing is the ability to add an attachment to gmail too like a pdf file?

Thanks in advance for all your help!

Tom
 
Top