Android Question [Solved]Intent not working

AndroidMadhu

Active Member
Licensed User
Hello,
I am trying to share a text from my app to another installed apps [Watsapp, SMS, telegram etc].
But I am not able to share the text to the above mentioned application.
I ma getting error as below :
"
Can't send empty message
I am sharing my below code :
B4X:
 Dim intent As Intent
intent.Initialize(intent.ACTION_SEND,"")
intent.PutExtra("text","hello, kattah!" )
intent.SetType("text/plain")
StartActivity(intent)

Please advice

Thanks
 
Top