Thursday, December 6, 2012

Example code for Twitter OAuth in Android

I’ve shared an example project on github demonstrating how I used ideas borrowed from David Crowley at to get a Twitter OAuth access token without the signpost (or any other) library besides twitter4j, instead using only the Android Web View. The main improvement in the general method being that the the web view activity does all of the work to get the request and access tokens and responds back to the calling activity and the work to get the tokens occurs on a background thread.

This code is stripped down from another project, but it demonstrates the idea. You’ll need to update the, your callback URL and implement the listTweets () method.

No comments:

Post a Comment