- This wikiHow teaches you how to download all of the files from your Google Drive account to your Mac or PC computer. You can download your files directly.
- Force Download Files From Google Drive. To make this trick happen, all you have to do is change the URL structure of the shared file. For instance, the below URL is a PDF document of Windows 8 shortcuts that we published earlier.
I am working on application where i take a backup of some user's data to Google drive and in a later time i restore them.
Unfortunately, you can't download a Google Doc file directly onto your. This will open your Google Drive page if you're logged into your Google Account.
The problem is that the files created and restored with no problems except that i can't see any progress, if i am uploading a large file it keep doing that in the background and can't notify the user that there is some operation happening in the background.
here is a snippet from the method i am using
The problem is that if i'am uploading 3 files, the Log.d(TAG,Log.d(TAG, 'Created a file with content: ' + result.getDriveFile().getDriveId());
is called very quickly after each others, and the actual files keep uploading in the background.
So can anyone tell me how to get real status of the uploading files in the background?
1 Answer
Can't Download Video From Google Drive
You need to add progress listeners which will listen to download or upload progress.
Why Cant I Download Files From Google Drive
For uploading, you can use the MediaHttpUploaderProgressListener
implementation given in Implementation details
For downloading, you can attach a DownloadProgressListener
to inform users of the download progress in a ProgressDialog
. As shown in Opening the file contents specifically in listening to the download progress, open the file contents with a DownloadProgressListener.
Solutions given in these SO post - Check progress for Upload & Download (Google Drive API for Android or Java) and How to show uploading to Google Drive progress in my android App? might help too.