Dim i As Intent
i.Initialize(i.ACTION_SEND, "file://" & File.DirRootExternal & "/pic.png")
i.SetType("image/png")
i.SetComponent("com.whatsapp")
i.WrapAsIntentChooser("Share pic...")
StartActivity(i)
Dim i As Intent
i.Initialize(i.ACTION_SEND, "file://" & File.DirRootExternal & "/1.jpg")
i.SetType("image/png")
Dim jo As JavaObject = i
jo.RunMethod("setPackage", Array As Object("com.whatsapp"))
StartActivity(i)
Dim i As Intent
i.Initialize(i.ACTION_SEND, "file://" & File.DirRootExternal & "/1.jpg")
i.SetType("image/png")
Dim jo As JavaObject = i
jo.RunMethod("setPackage", Array As Object("com.whatsapp"))
StartActivity(i)
I agree @Erel.
I discovered that if you put "com.whatsapp/.Main" as component to interact, the chooser will not display and the intent open whatsapp directly.
The problem is that a blank message appear without the image expected.