Android Question Email intent get rid of old showing mail

tito

Member
Licensed User
Longtime User
Hi everyone,

I'm starting an email intent with following code using gmail:
B4X:
    Dim EmailIntent As Email
    EmailIntent.To.Add ("abc@abc.com")
    EmailIntent.Body = "MailText"
    EmailIntent.Subject = "test123"
    Dim in As Intent = EmailIntent.GetIntent
    in.SetPackage("com.google.android.gm")
    StartActivity(in)

it works fine but if the user is not sending or closing the mail (for what reson ever) but reopen the app and sending another mail then the old one is still active and it is not showing the new one.
Does anyone have an idea how to get in any case to the new mail displaying?
I guess it is not possible to automatically close the "not sent mail" right?

Thx
 
Top