Android Question Post text to Viber, Telegram, Skype, WhatsApp.... any messenger

peacemaker

Expert
Licensed User
Longtime User
Is any messnger posting way (lib) available for B4A ? Not by intent, fully software posting including authorization and so on...
i see that it looks like spammer's question, but for communication bridge via other messanging systems.
 

peacemaker

Expert
Licensed User
Longtime User
Customer needs to collect info and pass into an operator messenger account, any.
I offered to use email, so problem is over jumped, but... does the topic question have no answer ? Do all messengers not allow software posting due to spam? I mean some "messenger client API".
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
B4X:
Sub Send_Viber(tel As String, text as String)
Dim i As Intent
i.Initialize("android.intent.action.SENDTO", "smsto:" & tel)
Dim jo As JavaObject = i
jo.RunMethod("setPackage", Array("com.viber.voip"))
i.PutExtra("android.intent.extra.TEXT", text)
i.SetType("text/plain")
i.WrapAsIntentChooser("Viber:")
StartActivity(i)
End Sub

Sub Send_Whatsup(tel As String, text as String)
Dim i As Intent
i.Initialize("android.intent.action.SENDTO", "smsto:" & tel)
Dim jo As JavaObject = i
jo.RunMethod("setPackage", Array("com.whatsapp"))
i.PutExtra("android.intent.extra.TEXT", text)
i.SetType("text/plain")
i.WrapAsIntentChooser("WhatsApp:")
StartActivity(i)
End Sub
 
Last edited:
Upvote 0
Top