How can I post on Twitter with Intent Action_send?

后端 未结 5 1726
野趣味
野趣味 2020-12-05 15:37

I have been struggling to send text from my app to Twitter.

The code below works to bring up a list of apps such as Bluetooth, Gmail, Facebook and Twitter, but when

5条回答
  •  遥遥无期
    2020-12-05 16:13

    Try this, I used it and worked great

      Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com/intent/tweet?text=...."));
      startActivity(browserIntent);         
    

提交回复
热议问题