1

Possible Duplicate:
twitter integration on android app

Hi all, how to post the tweets from my android application. I searched stackoverflow for this but i failed to get the solution. can anyone tell me how can i proceed now??

thanks
venu

Community
  • 1
  • 1
Venugopal
  • 1,288
  • 3
  • 19
  • 31

1 Answers1

2

You can e.g. use twitter4j ( http://twitter4j.org/ ) to do this. Have a look at http://github.com/pilhuhn/ZwitscherA for an Android Twitter client that uses this library.

In earlier days it was easier to access Twitter, but nowadays you need to implement oAuth to connecto to Twitter.

An alternative could be to create an account at http://identi.ca/ , post to this account and have identi.ca forward your messages to Twitter.

Heiko Rupp
  • 30,426
  • 13
  • 82
  • 119
  • @Heiko Rupp, really very very thanks for your app. It is really awesome. i installed your .apk file and it is working as i am expecting, downloaded your source code, created 'TwitterConsumerToken' class and my consumerKey="hN5Imz3gMiIHYtGmeWKRQ" consumerSecret = "QIsNoUc7HL0WNKg7y5Ql1fg0Uf4cPcyyevscmllJG0". when i run your code with these values i am not getting that PIN code, instead it is redirecting to my website. What mistake i made when registering the app in twitter?? can you explain me?? – Venugopal Jan 30 '11 at 20:49
  • This is strange when it redirects to your homepage - perhaps some router that rewrites http requests? – Heiko Rupp Jan 30 '11 at 20:57
  • i have reistered another app, got consumerKey="ComtNJ0ENl2kwS0arx5g" and consumerSecret="SeJeLMYxV5v3qciinzLwYMGmhJxiZHIC4ccVmyiZAH0", got Pin also. But the problem is after entering Pin into your app it is get crashed with NullPointerException at de.bsd.zwitscher.TabWidget.onCreate(TabWidget.java:57). For this application registration i set the Application Type as Client. Are there any mistakes in my approach?? can you guide me? – Venugopal Jan 30 '11 at 21:13
  • I fear that may be with the recent code - I may not have updated the new multi account handling to the classic oAuth. Try to checkout the v065 tag and retry. And open an issue on GitHub, so that I don't forget to fix the oAuth case. Thanks – Heiko Rupp Jan 30 '11 at 21:16
  • sure!! can you just tell me onething what would be the Application Type(Client/Browser) when we registering the application in twitter?? – Venugopal Jan 30 '11 at 21:22
  • I've registered Zwitscher as Client – Heiko Rupp Jan 30 '11 at 21:33