Signpost Android 4+ Woes

120 views
Skip to first unread message

Chris Higgins

unread,
Aug 3, 2012, 12:37:12 PM8/3/12
to signpos...@googlegroups.com
I'm trying to use this library to do some authentication, but whenever
I use Android 4 or above, I run into problems. With Froyo, I can
authenticate with an OAuth 1.0a provider, but when I try to use the app
on my ICS device/emulator, it craps out on me. It happens whenever I try
to do provider.retrieveRequestToken(consumer, callbackURL), I end up getting
an OAuthCommunicationException. Doing as good of a stack trace and
debugging as I know how to, I've narrowed my problem down to the first
line of the following method:

// From CommonsHttpOAuthProvider
@Override
protected oauth.signpost.http.HttpResponse sendRequest(HttpRequest
request) throws Exception {
HttpResponse response = httpClient.execute((HttpUriRequest)
request.unwrap()); // Here is where my problem lies
return new HttpResponseAdapter(response);
}

Now I'm not sure if there's just something wrong with the Android
version of HttpClient? Or if this is a signpost issue? Or if I'm just
absolutely oblivious to what the problem may be, but I'm practically at
wits end, I just cannot figure out what's gone wrong. If anyone could
provide any sort of feedback or anything, it would be much appreciated.
Here's the URL for my current working branch of my project:
https://github.com/Neoseeker/neoseeker-android/tree/refactor. You'll
find my signpost work in src/com/neoseeker/android/NeoAPI.java

Thanks a ton!

--
Chris Higgins
Student, Systems Administrator, Programmer
http://chigstuff.com


signature.asc

Warren McAllister

unread,
Aug 17, 2012, 9:21:10 AM8/17/12
to signpos...@googlegroups.com
Hi there - I'm seeing similar issues on Android 4+ - did you find a fix?

Regards,

Warren
Reply all
Reply to author
Forward
0 new messages