HI, All
Long ago such intent type as "message/rfc822" was helping to choose only Email clients installed on the device.
But now this does not work well.
Now the intent of such code shows the apps list where also added Viber, Telegram and all other messengers. But the task is to send a message only by the email, to an email-address.
And note that the attachment support is also important.
Any solution how to filter only the email clients in the app list ?
Long ago such intent type as "message/rfc822" was helping to choose only Email clients installed on the device.
But now this does not work well.
B4X:
Dim Message As Email
Dim hw1 As Phone
If subj = "" Then subj = "app error log"
Message.To.Add(Starter.PublicEmail)
Message.Subject = Application.LabelName & "_v." & Application.VersionName
Message.Body = "Mf=" & hw1.Manufacturer & "; Model=" & hw1.Model & "; Product=" & hw1.Product & "; SdkVersion=" & hw1.SdkVersion & CRLF & Text
If AttPath.Trim & AttFileName.Trim <> "" Then
If File.Exists(AttPath, AttFileName) Then
Message.Attachments.Add(File.Combine(AttPath, AttFileName))
End If
End If
Show_CustomToast("Send email to the developers", True)
Dim FinalEmailIntent As Intent
FinalEmailIntent = Message.GetIntent
FinalEmailIntent.SetType("message/rfc822")
FinalEmailIntent.WrapAsIntentChooser("Email:")
StartActivity (FinalEmailIntent)
Now the intent of such code shows the apps list where also added Viber, Telegram and all other messengers. But the task is to send a message only by the email, to an email-address.
And note that the attachment support is also important.
Any solution how to filter only the email clients in the app list ?
Last edited: