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