简体   繁体   English

Google Drive Android API - 在App文件夹中共享文件?

[英]Google Drive Android API - Sharing files in App folder?

I want to create an app that stores files "safely" from the user, and the App Folder in the Google Drive API seems perfect for this. 我想创建一个从用户“安全”存储文件的应用程序,Google Drive API中的应用程序文件夹似乎是完美的。 But I also want people using the app to be able to share the app-specific files (and stay in sync) with each other. 但我也希望使用该应用程序的人能够彼此共享特定于应用程序的文件(并保持同步)。

So my question is: Is it possible to share any data that is located in the hidden "App folder" of Google Drive? 所以我的问题是:是否可以共享位于Google云端硬盘隐藏的“应用文件夹”中的任何数据?

For everyone who is interested in a solution: 对于对解决方案感兴趣的每个人:

I found no way to sync shared files with the google android native API. 我发现无法使用google android原生API同步共享文件。 (besides the file picker) In case you want to do so you have to use the google drive rest API. (除了文件选择器)如果你想这样做,你必须使用谷歌驱动器休息API。 A little advantage for this solution. 这个解决方案有点优势。 I think the java rest API is anyway much more suited for this kind of work. 我认为java rest API无论如何更适合这种工作。 Code gets in that way much more readable. 代码以这种方式变得更具可读性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM