hi...
I use FileProvider.
I just want to send it with WhatsApp. I tried setComponent.
I could not. Where am I making mistakes. Thank you.
I use FileProvider.
I just want to send it with WhatsApp. I tried setComponent.
I could not. Where am I making mistakes. Thank you.
B4X:
'copy the file to the shared folder
File.Copy(File.DirAssets, "b4a.png", Starter.shared, "b4a.png")
Dim in As Intent
in.Initialize(in.ACTION_SEND, "")
in.SetType("text/plain") 'it is not related to the file itself.
in.SetComponent("com.whatsapp")
in.PutExtra("android.intent.extra.STREAM", CreateFileProviderUri(Starter.shared, "b4a.png"))
in.Flags = 1
StartActivity(in)