Skip to content Skip to sidebar Skip to footer

How To Tweet From Android App?

I am developing an Android application and would like to have the functionality to send message on my twitter account (TWEET). Which APIs are available for this? Code samples will

Solution 1:

If you just need to send a tweet, this can help you.

StringtweetUrl="https://twitter.com/intent/tweet?text=PUT TEXT HERE &url="
                        + "https://www.google.com";
Uriuri= Uri.parse(tweetUrl);
startActivity(newIntent(Intent.ACTION_VIEW, uri));

If you want to know which parameters are available, check this link https://developer.twitter.com/en/docs/twitter-for-websites/tweet-button/guides/parameter-reference1

Post a Comment for "How To Tweet From Android App?"