I'm composing an email with the following code, but the StartActivity allows the user to choose from all apps (including Drive, Whatsapp, etc)
Is there a way to limit the user to choose only valid email apps (eg: GMail, Yahoo Mail, Outlook, etc)?
Is there a way to limit the user to choose only valid email apps (eg: GMail, Yahoo Mail, Outlook, etc)?
B4X:
Dim email As Email
email.To.Add(m_EmailAddress)
email.Subject = Subject
email.Body = Body
email.Attachments.Add(Starter.Provider.GetFileUri(FileName))
Dim in As Intent = email.GetIntent
in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION
StartActivity(in)