Jean Weets Member Licensed User Longtime User Oct 24, 2016 #1 Hello, How do I open in B4I the default email client with his inbox (not to sent an email) ? For Android B4A this work fine: B4X: Dim In As Intent In.Initialize(In.ACTION_SEND, "") In.SetType("text/plain") In.SetComponent("com.android.email/.activity.Welcome") In.Flags = 0x10000000 Try StartActivity(In) Catch Log("Check Email: Start Failed... ") End Try
Hello, How do I open in B4I the default email client with his inbox (not to sent an email) ? For Android B4A this work fine: B4X: Dim In As Intent In.Initialize(In.ACTION_SEND, "") In.SetType("text/plain") In.SetComponent("com.android.email/.activity.Welcome") In.Flags = 0x10000000 Try StartActivity(In) Catch Log("Check Email: Start Failed... ") End Try
Erel B4X founder Staff member Licensed User Longtime User Oct 25, 2016 #2 Add this line: B4X: #QueriesSchemes: message Open the email app with: B4X: If App.CanOpenURL("message://") Then App.OpenURL("message://") End If Upvote 0
Add this line: B4X: #QueriesSchemes: message Open the email app with: B4X: If App.CanOpenURL("message://") Then App.OpenURL("message://") End If