1

Android Intent ACTION.SEND -- can't send text to Twitter or Facebook

view story
linux-howto

http://stackoverflow.com – I am having trouble when I try to pass a text string from within an EditText to either Facebook or Twitter via an intent. In fact, the only option which works currently is email. The code I am using is below: Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_TEXT, textVariable.getText()); intent.putExtra(Intent.EXTRA_SUBJECT, "Subject Title"); startActivity(Intent.createChooser(intent, "Share Text")); I have tried it with and without the subject line. Any thoughts? Thank you :) (HowTos)