Post to Twitter in Android
What is the pre开发者_C百科ferred way to post something to your Twitter?
Earlier you could use:
Twitter twitter = new Twitter(username, password);
twitter.updateStatus("Ohai, I can haz cheeseburger?!");
However, that doesn't work now. What is the alternative way?
Try using the twitter4j API:
http://twitter4j.org/en/index.html
And here is an O'reilly tutorial with sample code:
http://creativelive.com/courses/developing-android-applications-java-part-1-partnership-oreilly
This has been discussed before: twitter integration on android app
精彩评论