0

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?

whirlwin
  • 16,044
  • 17
  • 67
  • 98

2 Answers2

1

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

SupremeDud
  • 1,371
  • 10
  • 18
  • 1
    And here's a reason why you might wish to write another app instead: http://www.bbc.co.uk/news/technology-12731343 –  Mar 15 '11 at 12:37
1

This has been discussed before: twitter integration on android app

Community
  • 1
  • 1
Peter Knego
  • 79,991
  • 11
  • 123
  • 154