1

I have implemented a foursquare-api-java SDK in my Android app.

Sending the sample request described in https://code.google.com/p/foursquare-api-java/wiki/BasicUsage - it all works in the emulator. It breaks as soon as I try it on the phone, returning 405 "This endpoint only supports GET" error.

Has anyone ran into the same problem? Any ideas?

1
  • Here I have the issue in the emulator but not on the phone.
    – ddewaele
    Aug 21, 2013 at 12:20

2 Answers 2

0

I had this problem in Android ICS.

Check this: http://code.google.com/p/foursquare-api-java/issues/detail?id=66

The error was fixed by removing setDoOutput(true) from DefaultIOHandler.java class.

0

Not sure what you are doing but most functions are only available as GET. User/self is an example.

Hope this helps. Just change it to Get request instead of Post

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.