I'm developing an app with google drive and I can see my files with these app. I want to download the files, but I can't. This is my function, is equal to google documentation:. You are getting the file content and returning an InputStream however your code doesn't show what you are doing with this InputStream. You need to use it to save the content of the file to Disk or database etc Please have a look at the link that FaddishWorm sent you in comments which writes the file to the SD Card: Download a file with Android, and showing the progress in a ProgressDialog.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
Learn more. I try to download a google file, there isn't errors but it doesn't work Ask Question. Asked 9 years, 3 months ago. Active 9 years, 3 months ago.
So, if Google Drive is zipping files forever on your PC, you should start by restarting your computer. I know, I know The zip downloads fail for most users due to the unintuitive nature of the download steps.
The initial steps are logical i. Google Drive will then start zipping your files. You will receive a Leave site pop-up at the top. Normally, pop-ups make sense with a yes or no button. But here things are different. You are offered two options — leave and cancel. A regular user would think that the download for the zipped files will be canceled by clicking on the Leave button. So they click on Cancel. Pressing the Cancel button will stop the downloads.
As strange as it may sound, you have to click on Leave. Doing that will start the download process of the zipped files. Step 4: If the pop-ups are blocked, click on the Add button next to Allow. Step 5: Close Chrome. Then try downloading the files. Do remember to click on Leave instead of Cancel in the pop-up. You should also try manually clearing temporary files of your browser such as cookies and cache.
We have mentioned the steps for Google Chrome browser. Step 2: Scroll down and you will find the Advanced option. Click on it to reveal more settings. Uncheck others. Hover your mouse over the image, and the Download button will appear.
If you view files in the grid view, the Download button will be present on the file. Click on that to download the file. Alternatively, you can click on the Download all button present at the top as well. For many users, Google Drive gets stuck on Preparing Zip file message only. To fix that, you need to click on the Leave site button when a pop-up appears that asks whether you want to Leave site or Cancel.
Clicking the Leave button starts the download process. We have covered the Google Drive not downloading Zip files issue in detail. Do take a look for other solutions. To enable cookies, open drive. Click on the tiny lock icon present on the left side of the address bar. Then, select Cookies from the list. In the pop-up window that appears, click on the Blocked tab.
Check if you find any link related to Google. Click on that and hit the Allow button at the bottom. Finally, click on Done. Restart the page or the browser, and you should be able to download the files again. When someone sends you a Google Drive link to download files, you need to be signed in with the same account allowed to access those files.
Basically, Google Drive file sharing permissions works in two ways. The owner who generates a link for the file or the folder can let anyone with the link access the file. In that case, any Google account can be used to view or download files. But the owner can also restrict the files to a select few users only based on their email address.
In such cases, you need to switch your Google account to the right one. If you are a Google Chrome user, you can sign into multiple Google accounts.
However, one of them is used as a default account. That account is also used for the Google Chrome sync feature. Whenever you receive a Google Drive link accessible from a different account, you need to switch to that account.
To do so, open drive. You will be signed in with the default account. Click on the profile picture at the top-right corner of the Drive screen.
0コメント