The following codes work when I want to send files via email but the DirRootExternal path appears in the To: field. Is there a way to prevent that?
Thanks.
B4X:
Dim In As Intent
Dim u As Uri 'ContentResolver library
In.Initialize(In.ACTION_SEND,"file://" & File.Combine(File.DirRootExternal, "test.txt"))
u.Parse("file://" & File.Combine(File.DirRootExternal, "test.txt"))
In.PutExtra("android.intent.extra.STREAM", u)
In.SetType("*/*")
StartActivity(In)
Thanks.