Hello,
me again

the comment is big , i know.
I have done some tests using the sync api. everything works ok BUT.
the app consumes too much internal disk space for its cache.And the bad thing is that it seems that my app is using the space and not dropbox!
for example i added 28 MB of files to my dropbox via the app and after several syncs the cache grew to 200MB.
The documentations says that the default max file cache is 500MB and i read somewhere that every 3 days the old files from the cache are cleared.
A lot of phones cant spare 500MB of internal space just for dropbox.mine showed an alert for low disk space at 160MB cache
Since we are just uploading or downloading files there is no need for such cache.
anyway i found that unlinking and linking again clears the cache but its really annoying for the user as he has to click accept every time.
Another solution is to set the max cache using
void
setMaxFileCacheSize(long maxBytes)
"The cache size can be set to zero, in which case files are removed from the cache as soon as they are no longer in-use."
can i do this via reflection or any other method?
also the dropbox sync api has some usefull apis , like:
boolean
anyInProgress()
long
getFileCacheSize()
boolean
hasLinkedAccount()
boolean
isLinked()
has linked account and islinked are really usefull because you can't call .link and present the user with dropbox authorization when he opens your app.
you must first check to see if the app is linked and if not to have a button so that IF the user wants, he can press to link it.
But if its already linked you can go ahead and do your uploads/downloads without waiting for the user to press the link button.
Any help is appreciated.
Thank you