Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024

Original comment by nabeelmukhtar on 20 May 2010 at 12:17

  • Changed state: Accepted

from linkedin-j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
I'm having the same problem on Android. Using 0.1rc4 I receive an exception 
that is thrown on any subsequent calls that are after the first call to the API 
client.

Original comment by [email protected] on 2 Jul 2010 at 6:38

from linkedin-j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
Confirmed this issue also exists using the latest build (r310).

Original comment by [email protected] on 2 Jul 2010 at 6:59

from linkedin-j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
Looking at the oauth-signpost project 
(http://code.google.com/p/oauth-signpost/) I found:

"
Google Android
IMPORTANT: Do NOT use the DefaultOAuth* implementations on Android, since 
there's a bug in Android's java.net.HttpURLConnection that keeps it from 
working with some service providers. Instead, use the CommonsHttpOAuth* 
classes, since they are meant to be used with Apache Commons HTTP (that's what 
Android uses for HTTP anyway).

Signpost is already used in several applications running on Android, Google's 
software stack for mobile devices. In fact, Signpost has already signed 
thousands of HTTP requests at this very moment, as it is an integral part of 
Qype Radar, our geo-sensitive mobile application for Android that finds the 
best places near you.
"

I will try to change the library to avoid using the default OAuth 
consumer/provider.

Original comment by [email protected] on 3 Jul 2010 at 6:14

from linkedin-j.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
I've managed to successfully replace the DefaultOAuth* consumer/provider with 
CommonstHttpOAuth* consumer/providers and have confirmed that it fixes the bug 
mentioned above for Android. Tested in Android 1.5, 1.6, 2.0 emulators as well 
as on a G1 running Android 1.5.

I could submit a patch containing my changes if you would like to integrate my 
fix. I essentially overrode the LinkedInApiClient callApiMethod() methods to 
provide methods that use the CommonsHttp classes.

Original comment by [email protected] on 5 Jul 2010 at 8:51

from linkedin-j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.