问题
I have an App that downloads MP3 files but I'd like to provide an option to the user to upload the file to dropbox on download completion. I've looked through the API couldn't see how to do it. Is that possible at all?
回答1:
Yes, you can use either the Core SDK:
https://www.dropbox.com/static/developers/dropbox-android-sdk-1.5.4-docs/com/dropbox/client2/DropboxAPI.UploadRequest.html
or the Sync SDK:
https://www.dropbox.com/developers/sync/docs/android#com.dropbox.sync.android.DbxFile
to upload files from Android to Dropbox.
来源:https://stackoverflow.com/questions/17039701/upload-file-to-dropbox-programmatically-from-android-app