A AndroidMadhu Active Member Licensed User Apr 2, 2021 #1 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 Click to expand... 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
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 Click to expand... 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
A AndroidMadhu Active Member Licensed User Apr 2, 2021 #2 Resolved the issue.. I missed one line of code Thanks Upvote 0