Reputation: 16521
What is the preferred 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?
Upvotes: 0
Views: 5693
Reputation: 80330
This has been discussed before: twitter integration on android app
Upvotes: 1
Reputation: 1411
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
Upvotes: 1