Search code examples
androidtwitterjtwitter

Re-tweets and replies with JTwitter


I have not used Twitter enough to become familiar with its terminology or the way it works, so please help me in understanding the problem I have at hand.

I am getting last 20 status updates posted by some Twitter user via RSS feed, the feed XML is parsed and the statuses are displayed in a ListView. Which means that I have the original tweet in a String variable(row of ListView). When I click a ListView item, I get the option of "Re-tweeting" and "post reply".

As, I understand it, when re-tweeting I will have to just update my status as:

RT @orig-poster <original tweet>

and when posting a reply I will have to just update my status as:

@orig-poster <my tweet>

I skimmed through the JavaDocs of the Jwitter library(Twitter class) and found a setStatus(String) method. I dont think I will have to make use of retweet() or reply() functions of the Twitter class in JTwitter library.

Is my understanding correct? Please correct me if I am wrong here or missing anything.

Thanks!


Solution

  • Retweets and Replies are a bit more complex than simple syntax differences: