I am developing an application in which I first list the tweets from my account (using HttpClient and so, I would prefer not to use twitter4j).
When a user clicks on twitter from the list, all the content is displayed, and I would like to have a button to be able to reply to this tweet.
I successfully allowed the user to send tweets through the native Twitter application. However, he does not associate this answer with the original tweet; it is presented as a new tweet.
Here is the code I'm using:
String tweetUrl = "https://twitter.com/intent/tweet?text=EXAMPLE TEST&url=https://www.google.com&in_reply_to_status_id=STATUS ID"; Uri uri = Uri.parse(tweetUrl); startActivity(new Intent(Intent.ACTION_VIEW, uri));
If I put the same URL in a web browser, it will answer correctly, so I think this is a problem of the native application, not getting all the parameters correctly.
Does anyone know how to solve this? Thanks in advance!
source share