J JoeR Member Licensed User Longtime User Apr 13, 2014 #1 I am using the phone library to send an email. The following code works, but the user has to choose a client from a long list. How can I force it to use the default email client? B4X: Dim Message As Email Dim url As String url = "fred@somewhere.com" Message.To.Add(url) Message.Subject = "Joe test" StartActivity(Message.GetIntent)
I am using the phone library to send an email. The following code works, but the user has to choose a client from a long list. How can I force it to use the default email client? B4X: Dim Message As Email Dim url As String url = "fred@somewhere.com" Message.To.Add(url) Message.Subject = "Joe test" StartActivity(Message.GetIntent)
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2014 #2 The user should have an option to set the chosen app as the default app. This is the standard behavior. You can however use PackageManager.QueryIntentActivities to get the list of supported apps and choose the first one. Upvote 0
The user should have an option to set the chosen app as the default app. This is the standard behavior. You can however use PackageManager.QueryIntentActivities to get the list of supported apps and choose the first one.