I use google drive api android and i need to know 1) how much free space is left on google drive, and 2) how much is already taken. How to do it? Or is it necessary to resort to rest api?
- Look at the metadata files and folders Google Drive, there is information about the size of each. That is, knowing the desired folder you can get them. And if you are familiar with these m developers.google.com/drive/android/intro then everything is simple. Well, then lay down, and I think everything will be ok. - Igor
- Yes, the total size can be found through DriveResourceClient.Query, specifying an empty filter. But how to find out the remaining space. Of course, I can deduct from 15 GB, which is given to everyone, but this is not a panacea. - Artem Danilin
- I had to resort to rest: About about = drive .about () .get () .setFields ("storageQuota") .execute (); about.getStorageQuota (). getLimit () - Artem Danilin
|