How to retweet tweet in Twitter Kit for Android

android

#1

How to retweet tweet in Twitter Kit for Android


#2

You’ll want to use the TwitterApiClient retweet method.


#3

Hi!

I tried to implement this but I think I am missing something… This code actually does not throw any error but the tweet does not appear as retweeted in the user’s main page.

        TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();
        twitterApiClient.getStatusesService().retweet(tweetId, true);

Can anyone help me?


#4

The Twitter SDK uses Retrofit for all API calls. Every method returns a call object that you must call either enqueue or execute.

See my response to you previous question here: How to get the user profile image in Android

More on Retrofit: http://square.github.io/retrofit/


#5