Sto lavorando su Twitter, ho un token di accesso e sto anche ricevendo i tweet ora voglio rispondere su quei tweet come abbiamo fatto nel sito di Twitter per questo sto usando il codice qui sotto ma non è la risposta al tweet ma è aggiornamenti il mio stato si prega di aiutarmi a risolvere questo problema .. GrazieCome utilizzare Twitter4j api per rispondere su un tweet?
public void tweetReply() {
try {
// System.out.println("Post Id= " + itemsObj.postId);
AccessToken a = new AccessToken(twittertokens[0], twittertokens[1]);
Twitter twitter = new TwitterFactory().getInstance();
twitter = new TwitterFactory().getInstance();
twitter.setOAuthConsumer(Constants.CONSUMER_KEY, Constants.CONSUMER_SECRET);
twitter.setOAuthAccessToken(a);
Long id = new Long("236178766597087234");
twitter.updateStatus(new StatusUpdate("@lalitrajput024 this is to test For reply option ").inReplyToStatusId(id));
} catch (Exception e) {
// TODO: handle exception
}
}
ho risolvere questo problema in stack overflow .. segui questo link http://stackoverflow.com/questions/13134629/in-android-how-directly-post-tweet-to-following-users -of-a-authenticate-user-in Questa risposta Link verifica! spero che questo link possa aiutarti! –