Android Question How do you send a Tweet?

GEoffT

Member
Licensed User
Longtime User
I have searched the forum, but still not found a way of sending a Tweet. |Has anyone suceeded in doing this. I would be most grateful for a point in the right direction.

regards Geoff
 

DonManfred

Expert
Licensed User
Longtime User
What about this using some inline Java code
What about pure B4A? :D

B4X:
Sub Button1_Click
    Dim share As Intent
    share.Initialize(share.ACTION_VIEW,"https://twitter.com/intent/tweet?text=B4X - Android, iOS, desktop, server and IoT programming tools&url=https://www.b4x.com")
    StartActivity(share)
End Sub

Snap12.png
 
Upvote 0

GEoffT

Member
Licensed User
Longtime User
What about pure B4A? :D

B4X:
Sub Button1_Click
    Dim share As Intent
    share.Initialize(share.ACTION_VIEW,"https://twitter.com/intent/tweet?text=B4X - Android, iOS, desktop, server and IoT programming tools&url=https://www.b4x.com")
    StartActivity(share)
End Sub

View attachment 58427
Thanks DonManfred.

Is there a way of making Android use Internet for this rather than it asking which program to perform the action with?
 
Upvote 0
Top