I want to be able to share text (and later images as well) via an intent but only to the twitter application. I've tried using setClassName
however this just causes the application to stop. So far I have:
String message = "My Text.";
Intent sharingIntent = new Intent();
sharingIntent.setAction(Intent.ACTION_SEND);
sharingIntent.putExtra(Intent.EXTRA_TEXT, message);
sharingIntent.setType("text/plain");
startActivity(sharingIntent);
some of the answers I've found but aren't helping are: