I always get SocketTimeoutException when invoking:
client.files.listFolderLongpoll(cursor, 60);
According to the docs it should just return a result with the "changes" flag set to false. How can I fix that?
(Using dropbox-core-sdk-2.0-beta-5.jar).
Thanks for the report Dennis! This is a known issue that the team is working on.
This should be fixed as of version 2.0-beta-6 of the SDK, where we exposed the ability to configure socket read timeouts for StandardHttpRequestor.
You can find a sample of using longpoll here:
https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/longpoll/src/com/dropbox/core/examples/longpoll/Main.java