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.

1 comment:

  1. Casino Queen Room Review (2021) |
    Casino Queen 먹튀폴리스 스포츠중계 벳무브 Room is a fully renovated hotel with 커뮤니티 베스트 a modern design, the 스포츠토토 판매점 위치 샤오미 spacious guest room ggbet features 3-star hotel rooms, a dining  Rating: 토토 핫 7/10 · ‎Review by Tricktactoe