Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retweet using Twitter4j Android

i'm trying make simple app twitter and i use twitter4j library and i got good tutorial how to login and post twitter used that library. my app display timeline and had retweet button, my question how to retweet using twitter4j library?

like image 200
Frank Junior Avatar asked Sep 04 '12 03:09

Frank Junior


Video Answer


1 Answers

You can call Status#retweet() or TwitterStream#retweet() with the original tweet id.

You can also use Twitter#retweetStatus(), for example:

Twitter twitter = new TwitterFactory().getInstance();
twitter.retweetStatus(idOfStatusToRetweet);
like image 178
MByD Avatar answered Sep 27 '22 23:09

MByD