Please Help.
Following code doesn't work with whatsapp.
I can pickup contact from whatsapp but after that is says "sharing failed. please try again"
Code:
It works for plain tax like this
Please help..... Thanks in advance
Following code doesn't work with whatsapp.
I can pickup contact from whatsapp but after that is says "sharing failed. please try again"
Code:
B4X:
Sub button1_click
Dim u As Uri
u.Parse("file://" & File.Combine(File.DirDefaultExternal,"writeon.png"))
Dim i As Intent
i.Initialize(i.ACTION_SEND,"")
i.SetType("image/png")
i.SetComponent("com.whatsapp/.ContactPicker")
i.PutExtra("android.intent.extra.STREAM",u)
StartActivity(i)
End Sub
B4X:
Sub button1_click
Dim i AsIntent
i.Initialize(i.ACTION_SEND,"")
i.SetType("text/plain")
i.SetComponent("com.whatsapp/.ContactPicker")
i.PutExtra("android.intent.extra.TEXT","HELLO")
StartActivity(i)
End Sub
Please help..... Thanks in advance