Skip to content Skip to sidebar Skip to footer

Android - Dropbox: Check For Differences

Is it possible to check for differences between local and Dropbox? Hello. I am currently working on a simple gallery App which displays all Dropbox images. The workflow so far: I l

Solution 1:

The best way to keep track of changes in a Dropbox account when using the Dropbox API is by using /2/files/list_folder and /2/files/list_folder/continue:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folderhttps://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue

You should store the latest returned cursor, and then call back to /2/files/list_folder/continue using that cursor. It will returned only the changes since you last called.

For client-side apps, you can use /2/files/list_folder/longpoll to efficiently know when there are changes to retrieve:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-longpoll

There are also corresponding methods if you're using an SDK. For example, in the Dropbox Java SDK for API v2, these are listFolder, listFolderContinue, and listFolderLongpoll, respectively.

Post a Comment for "Android - Dropbox: Check For Differences"