Sub shareFile(filetxt As String)
'File previously written to Provider.SharedFolder
Dim in As Intent
' Inicializar
in.Initialize(in.ACTION_SEND, "")
Provider.SetFileUriAsIntentData(in, filetxt)
in.SetComponent("android/com.android.internal.app.ResolverActivity")
'in.SetType("application/pdf")
in.SetType("text/plain")
in.PutExtra("android.intent.extra.STREAM", Provider.GetFileUri(filetxt))
in.SetPackage("com.whatsapp")
StartActivity(in)
End Sub
The files arrive on cell phones, but through B4X code how can I get the data contained in the file to process it?