Following this easy code:
String tweetUrl = "https://twitter.com/intent/tweet?text=PUT TEXT HERE &url="+"https://www.google.com";
Uri uri = Uri.parse(tweetUrl);
startActivity(new Intent(Intent.ACTION_VIEW, uri));
Its possible to share also with those text and image? Without using twitter4j library.
Thank you!
What this code does is to query all activities that match with the
Intent.ACTION_SENDand then it searches for the“com.twitter.android.PostActivity”intent.