[Google Drive Android SDK] How to get notification when file upload succeeds or fails?

I used some example code to download video files:

Drive.DriveApi.getRootFolder(getGoogleApiClient())
                    .createFile(getGoogleApiClient(), changeSet, result.getContents()).setResultCallback(fileCallback);

      

Is there a way to find out when a video has already loaded successfully or unsuccessfully (unfortunate reason)? Now my result callback gets called immediately, but the video file is not on the backend of Google Drive. Somebody knows? Thank.

+3


source to share


2 answers


You don't need to receive notifications.

Only send notifications.



Link to this link

https://github.com/Redth/PushSharp

0


source


The recently released event completion function can be used to determine when files have been uploaded to the server. It is also possible to react to conflicts.



For more information see the documentation: https://developers.google.com/drive/android/completion

0


source







All Articles