views:

1952

answers:

4

hello..

i want to integrate twitter in my android app.so that i can post messages on twitter..plz help..

+1  A: 

Everything you need to know about communicating with Twitter is here.

For sending HTTP requests from your application, check out this guide.

David Hedlund
+1  A: 

In addition to d.'s solid choices, you could:

  • Use ACTION_SEND Intents with createChooser(), and if the user has a Twitter application installed (Twidroid) they can use it to update their status
  • Use an existing Twitter Java API, like JTwitter
CommonsWare
I use JTwitter in my Android app, it's easy. To see an example in code, the source for my app, Congress, is here:http://github.com/sunlightlabs/congress
Klondike
A: 

Twitter offers different "formats" to communicate via HTTP. If you decide to use JSON for that, I've recently posted a tutorial on how to build a simple HTTP client which can send & receive JSON objects. That should be a good start. As d. mentioned already you can find all the information about communicating with the Twitter API here.

znq