Jazz
Jazz

Reputation:

twitter in android

Is there any SDK of Twitter available through which we can implement Twitter in our application? I want that my application would load on his/her Twitter account and then the tweet should be sent to his/her account, but I cannot find any simple examples.

Something like the Facebook Android SDK is what I'm look for.

Upvotes: 2

Views: 3248

Answers (4)

Aman Aalam
Aman Aalam

Reputation: 11251

As @Heiko said, twitter4j is quite good. You should use it.

For an example of how it works, I have created a simple sample app that can be found here.

Check that out, maybe it helps you.

Upvotes: 0

Blitz
Blitz

Reputation: 5671

If you just want to post a tweet to twitter, use the Android SEND Intent. That way, the user can choose what he want's to do with the post himself. It's much easier for you as well. No worrying about OAuth etc.

Upvotes: 0

Heiko Rupp
Heiko Rupp

Reputation: 30994

You can use twitter4j. This site also contains some usage examples.

Unfortunately with the introduction of oAuth, login is no longer trivial. You have to register your application with Twitter (go to your account, then applications and add the app there). This will give you a consumer key/token pair, that you need for logging in and that you need to keep secret.

I've implemented this in my Android-Client called Zwitscher.

You can have a look at the Login procedure in the LoginActivity (of the v0.65 tag).

Upvotes: 6

Umesh
Umesh

Reputation: 4256

AFAIK there is no sdk provided for twitter. You can however use XAUTH for twitter. It is fairly easy to implement it.

This post might be able to help you.

xAuth Authentication for Twitter Share in Android?

Upvotes: -1

Related Questions